[gimp/gtk3-port: 281/440] app: use gimp_ui_menager_up_popup_at_widget() for the quick mask menu



commit 17f7eebdbfcd64c3a54d38b930bbfd3550def420
Author: Michael Natterer <mitch gimp org>
Date:   Wed May 2 12:09:39 2018 +0200

    app: use gimp_ui_menager_up_popup_at_widget() for the quick mask menu

 app/display/gimpdisplayshell-callbacks.c |   11 +++++++----
 1 files changed, 7 insertions(+), 4 deletions(-)
---
diff --git a/app/display/gimpdisplayshell-callbacks.c b/app/display/gimpdisplayshell-callbacks.c
index 2cd681e..38e60a3 100644
--- a/app/display/gimpdisplayshell-callbacks.c
+++ b/app/display/gimpdisplayshell-callbacks.c
@@ -277,10 +277,13 @@ gimp_display_shell_quick_mask_button_press (GtkWidget        *widget,
         {
           GimpUIManager *manager = gimp_image_window_get_ui_manager (window);
 
-          gimp_ui_manager_ui_popup (manager,
-                                    "/quick-mask-popup",
-                                    GTK_WIDGET (shell),
-                                    NULL, NULL, NULL, NULL);
+          gimp_ui_manager_ui_popup_at_widget (manager,
+                                              "/quick-mask-popup",
+                                              widget,
+                                              GDK_GRAVITY_EAST,
+                                              GDK_GRAVITY_SOUTH_WEST,
+                                              (GdkEvent *) bevent,
+                                              NULL, NULL);
         }
 
       return TRUE;


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