Commit d229d833 authored by Lubomir Rintel's avatar Lubomir Rintel
Browse files

utils: gtk4: pop the secret flags menu at the correct place

Well, it's at least the same place as in Gtk3.
parent 31ee3f1a
Pipeline #124505 passed with stages
in 21 minutes and 29 seconds
......@@ -225,22 +225,11 @@ icon_release_cb (GtkEntry *entry,
gpointer data)
{
GtkMenu *menu = GTK_MENU (data);
#if GTK_CHECK_VERSION(3,90,0)
GdkRectangle icon_area;
#endif
if (position == GTK_ENTRY_ICON_SECONDARY) {
#if GTK_CHECK_VERSION(3,90,0)
gtk_widget_show (GTK_WIDGET (data));
gtk_entry_get_icon_area (entry,
GTK_ENTRY_ICON_SECONDARY,
&icon_area);
gtk_menu_popup_at_rect (menu,
gtk_widget_get_surface (GTK_WIDGET (entry)),
&icon_area,
GDK_GRAVITY_CENTER,
GDK_GRAVITY_CENTER,
NULL);
gtk_menu_popup_at_pointer (menu, NULL);
#else
gtk_widget_show_all (GTK_WIDGET (data));
gtk_menu_popup (menu, NULL, NULL, NULL, NULL,
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment