Changeset 4df6607 in mainline for uspace/app/uidemo/uidemo.c


Ignore:
Timestamp:
2020-11-01T18:37:09Z (5 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c6f00b40
Parents:
8009dc27
Message:

Paint controls via layout

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/app/uidemo/uidemo.c

    r8009dc27 r4df6607  
    244244        }
    245245
    246         rc = ui_label_paint(demo.label);
    247         if (rc != EOK) {
    248                 printf("Error painting button.\n");
    249                 return rc;
    250         }
    251 
    252         rc = ui_pbutton_paint(demo.pb1);
    253         if (rc != EOK) {
    254                 printf("Error painting button.\n");
    255                 return rc;
    256         }
    257 
    258         rc = ui_pbutton_paint(demo.pb2);
    259         if (rc != EOK) {
    260                 printf("Error painting button.\n");
     246        rc = ui_fixed_paint(demo.fixed);
     247        if (rc != EOK) {
     248                printf("Error painting UI controls.\n");
    261249                return rc;
    262250        }
Note: See TracChangeset for help on using the changeset viewer.