Fork us on GitHub Follow us on Facebook Follow us on Twitter

Changeset 0eca788 in mainline


Ignore:
Timestamp:
2022-03-15T19:22:58Z (4 months ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
master
Children:
f2b9ecf
Parents:
bd16113
Message:

Slider does not have a caption

Location:
uspace
Files:
4 edited

Legend:

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

    rbd16113 r0eca788  
    10371037        }
    10381038
    1039         rc = ui_slider_create(ui_res, "Slide!", &demo.slider);
     1039        rc = ui_slider_create(ui_res, &demo.slider);
    10401040        if (rc != EOK) {
    10411041                printf("Error creating button.\n");
  • uspace/lib/ui/include/ui/slider.h

    rbd16113 r0eca788  
    4646#include <types/ui/slider.h>
    4747
    48 extern errno_t ui_slider_create(ui_resource_t *, const char *,
    49     ui_slider_t **);
     48extern errno_t ui_slider_create(ui_resource_t *, ui_slider_t **);
    5049extern void ui_slider_destroy(ui_slider_t *);
    5150extern ui_control_t *ui_slider_ctl(ui_slider_t *);
  • uspace/lib/ui/src/slider.c

    rbd16113 r0eca788  
    8888 *
    8989 * @param resource UI resource
    90  * @param caption Caption
    9190 * @param rslider Place to store pointer to new slider
    9291 * @return EOK on success, ENOMEM if out of memory
    9392 */
    94 errno_t ui_slider_create(ui_resource_t *resource, const char *caption,
    95     ui_slider_t **rslider)
     93errno_t ui_slider_create(ui_resource_t *resource, ui_slider_t **rslider)
    9694{
    9795        ui_slider_t *slider;
  • uspace/lib/ui/test/slider.c

    rbd16113 r0eca788  
    9999        errno_t rc;
    100100
    101         rc = ui_slider_create(NULL, "Hello", &slider);
     101        rc = ui_slider_create(NULL, &slider);
    102102        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    103103        PCUT_ASSERT_NOT_NULL(slider);
     
    119119        errno_t rc;
    120120
    121         rc = ui_slider_create(NULL, "Hello", &slider);
     121        rc = ui_slider_create(NULL, &slider);
    122122        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    123123
     
    135135        errno_t rc;
    136136
    137         rc = ui_slider_create(NULL, "Hello", &slider);
     137        rc = ui_slider_create(NULL, &slider);
    138138        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    139139
     
    169169        PCUT_ASSERT_NOT_NULL(resource);
    170170
    171         rc = ui_slider_create(resource, "Hello", &slider);
     171        rc = ui_slider_create(resource, &slider);
    172172        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    173173
     
    199199        PCUT_ASSERT_NOT_NULL(resource);
    200200
    201         rc = ui_slider_create(resource, "Hello", &slider);
     201        rc = ui_slider_create(resource, &slider);
    202202        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    203203
     
    219219        test_cb_resp_t resp;
    220220
    221         rc = ui_slider_create(NULL, "Hello", &slider);
     221        rc = ui_slider_create(NULL, &slider);
    222222        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    223223
     
    260260        PCUT_ASSERT_NOT_NULL(resource);
    261261
    262         rc = ui_slider_create(resource, "Hello", &slider);
     262        rc = ui_slider_create(resource, &slider);
    263263        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    264264
     
    316316        PCUT_ASSERT_NOT_NULL(resource);
    317317
    318         rc = ui_slider_create(resource, "Hello", &slider);
     318        rc = ui_slider_create(resource, &slider);
    319319        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    320320
     
    380380        PCUT_ASSERT_NOT_NULL(resource);
    381381
    382         rc = ui_slider_create(resource, "Hello", &slider);
     382        rc = ui_slider_create(resource, &slider);
    383383        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    384384
     
    441441        PCUT_ASSERT_NOT_NULL(resource);
    442442
    443         rc = ui_slider_create(resource, "Hello", &slider);
     443        rc = ui_slider_create(resource, &slider);
    444444        PCUT_ASSERT_ERRNO_VAL(EOK, rc);
    445445
Note: See TracChangeset for help on using the changeset viewer.