Changeset 97d3d9d in mainline for uspace/app/display-cfg/seats.c


Ignore:
Timestamp:
2023-04-20T18:43:15Z (7 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master, ticket/834-toolchain-update, topic/msim-upgrade
Children:
cdf5361
Parents:
37087c8
Message:

Start filling in unit tests for display-cfg

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/display-cfg/seats.c

    r37087c8 r97d3d9d  
    441441        dcfg_devices_entry_t *dentry;
    442442
    443         ui_pbutton_destroy(seats->add_device);
    444         ui_pbutton_destroy(seats->remove_device);
    445 
    446         ui_label_destroy(seats->devices_label);
    447 
    448443        lentry = ui_list_first(seats->device_list);
    449444        while (lentry != NULL) {
     
    454449                lentry = ui_list_first(seats->device_list);
    455450        }
    456         ui_list_destroy(seats->device_list);
    457 
    458         ui_pbutton_destroy(seats->add_seat);
    459         ui_pbutton_destroy(seats->remove_seat);
    460451
    461452        lentry = ui_list_first(seats->seat_list);
     
    468459        }
    469460
    470         ui_label_destroy(seats->seats_label);
    471         ui_list_destroy(seats->seat_list);
    472         ui_fixed_destroy(seats->fixed);
     461        /* This will automatically destroy all controls in the tab */
     462        ui_tab_destroy(seats->tab);
    473463        free(seats);
    474464}
     
    482472 * @return EOK on success or an error code
    483473 */
    484 static errno_t dcfg_seats_insert(dcfg_seats_t *seats, const char *name,
     474errno_t dcfg_seats_insert(dcfg_seats_t *seats, const char *name,
    485475    sysarg_t seat_id, dcfg_seats_entry_t **rentry)
    486476{
     
    564554 * @return EOK on success or an error code
    565555 */
    566 static errno_t dcfg_devices_insert(dcfg_seats_t *seats, const char *name,
     556errno_t dcfg_devices_insert(dcfg_seats_t *seats, const char *name,
    567557    service_id_t svc_id)
    568558{
Note: See TracChangeset for help on using the changeset viewer.