| 2418 // menu |
2418 // menu |
| 2419 if(item->button_menu) { |
2419 if(item->button_menu) { |
| 2420 UIMENU menu = ui_contextmenu_create(item->button_menu, listbox->obj, button); |
2420 UIMENU menu = ui_contextmenu_create(item->button_menu, listbox->obj, button); |
| 2421 event->customdata3 = menu; |
2421 event->customdata3 = menu; |
| 2422 g_signal_connect(menu, "closed", G_CALLBACK(button_popover_closed), button); |
2422 g_signal_connect(menu, "closed", G_CALLBACK(button_popover_closed), button); |
| |
2423 ui_menubuilder_unref(item->button_menu); |
| 2423 } |
2424 } |
| 2424 } |
2425 } |
| 2425 } |
2426 } |
| 2426 |
2427 |
| 2427 static void update_sublist_item(UiListBox *listbox, UiListBoxSubList *sublist, int index) { |
2428 static void update_sublist_item(UiListBox *listbox, UiListBoxSubList *sublist, int index) { |