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

Changeset 1aa0e38 in mainline for uspace/lib/ui/src/menuentry.c


Ignore:
Timestamp:
2021-04-09T22:01:35Z (8 months ago)
Author:
Jiri Svoboda <jiri@…>
Children:
6de45af0
Parents:
f5a6e25
Message:

UI menu unit tests

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/ui/src/menuentry.c

    rf5a6e25 r1aa0e38  
    286286
    287287                /* Call back */
    288                 if (mentry->cb != NULL)
    289                         mentry->cb(mentry, mentry->arg);
    290         }
     288                ui_menu_entry_cb(mentry);
     289        }
     290}
     291
     292/** Call menu entry callback.
     293 *
     294 * @param mentry Menu entry
     295 */
     296void ui_menu_entry_cb(ui_menu_entry_t *mentry)
     297{
     298        if (mentry->cb != NULL)
     299                mentry->cb(mentry, mentry->arg);
    291300}
    292301
Note: See TracChangeset for help on using the changeset viewer.