[libnma] utils: gtk4: pop the secret flags menu at the correct place



commit ac7dee2838182f6c90757ed2a0509939649e0c69
Author: Lubomir Rintel <lkundrak v3 sk>
Date:   Thu Oct 10 11:48:51 2019 +0200

    utils: gtk4: pop the secret flags menu at the correct place
    
    Well, it's at least the same place as in Gtk3.
    
    https://gitlab.gnome.org/GNOME/libnma/merge_requests/2

 src/nma-ui-utils.c | 13 +------------
 1 file changed, 1 insertion(+), 12 deletions(-)
---
diff --git a/src/nma-ui-utils.c b/src/nma-ui-utils.c
index d36638ad..6c797d02 100644
--- a/src/nma-ui-utils.c
+++ b/src/nma-ui-utils.c
@@ -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,


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]