ui/gtk/list.c

changeset 1032
9136db051f28
parent 1031
8f72e54b423e
--- a/ui/gtk/list.c	Sun Dec 28 16:13:34 2025 +0100
+++ b/ui/gtk/list.c	Sun Dec 28 19:01:05 2025 +0100
@@ -2496,7 +2496,11 @@
         
         UIMENU menu = data->customdata3;
         g_object_set_data(G_OBJECT(button), "ui-button-popup", menu);
+#if GTK_CHECK_VERSION(4, 0, 0)
         gtk_popover_popup(GTK_POPOVER(menu));
+#else
+        ui_contextmenu_popup(menu, button, 0, 0);
+#endif
     }
 }
 
@@ -2588,6 +2592,7 @@
                 event
                 );
         gtk_widget_set_visible(button, FALSE);
+        WIDGET_NO_SHOW_ALL(button);
         
         g_object_set_data(G_OBJECT(row), "ui-listbox-row-button", button);
         

mercurial