| 2654 UIMENU menu = data->customdata3; |
2654 UIMENU menu = data->customdata3; |
| 2655 g_object_set_data(G_OBJECT(button), "ui-button-popup", menu); |
2655 g_object_set_data(G_OBJECT(button), "ui-button-popup", menu); |
| 2656 #if GTK_CHECK_VERSION(4, 0, 0) |
2656 #if GTK_CHECK_VERSION(4, 0, 0) |
| 2657 gtk_popover_popup(GTK_POPOVER(menu)); |
2657 gtk_popover_popup(GTK_POPOVER(menu)); |
| 2658 #else |
2658 #else |
| 2659 ui_contextmenu_popup(menu, button, 0, 0); |
2659 ui_contextmenu_popup(GTK_MENU(menu), button, 0, 0); |
| 2660 #endif |
2660 #endif |
| 2661 } |
2661 } |
| 2662 } |
2662 } |
| 2663 |
2663 |
| 2664 #if GTK_CHECK_VERSION(4, 0, 0) |
2664 #if GTK_CHECK_VERSION(4, 0, 0) |