Changeset 4055fe63 in mainline for uspace/lib/ui/src/menubar.c


Ignore:
Timestamp:
2021-06-04T20:02:36Z (3 years ago)
Author:
Jiri Svoboda <jiri@…>
Children:
4b72e81
Parents:
2e6394e
Message:

Deliver close event to popup window when appropriate

That is, when focus changes or when user clicks outside of the
popup window.

File:
1 edited

Legend:

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

    r2e6394e r4055fe63  
    6161static errno_t ui_menu_bar_ctl_paint(void *);
    6262static ui_evclaim_t ui_menu_bar_ctl_pos_event(void *, pos_event_t *);
    63 static void ui_menu_bar_ctl_unfocus(void *);
    6463
    6564/** Menu bar control ops */
     
    6867        .paint = ui_menu_bar_ctl_paint,
    6968        .pos_event = ui_menu_bar_ctl_pos_event,
    70         .unfocus = ui_menu_bar_ctl_unfocus
    7169};
    7270
     
    317315}
    318316
    319 /** Handle menu bar window unfocus notification.
    320  *
    321  * @param mbar Menu bar
    322  */
    323 void ui_menu_bar_unfocus(ui_menu_bar_t *mbar)
    324 {
    325 //      ui_menu_bar_select(mbar, NULL, NULL);
    326 }
    327 
    328317/** Destroy menu bar control.
    329318 *
     
    362351}
    363352
    364 /** Handle menu bar control window unfocus notification.
    365  *
    366  * @param arg Argument (ui_menu_bar_t *)
    367  */
    368 void ui_menu_bar_ctl_unfocus(void *arg)
    369 {
    370         ui_menu_bar_t *mbar = (ui_menu_bar_t *) arg;
    371 
    372         ui_menu_bar_unfocus(mbar);
    373 }
    374 
    375353/** @}
    376354 */
Note: See TracChangeset for help on using the changeset viewer.