[gimp/gtk3-port: 281/336] app: use gimp_ui_menager_up_popup_at_widget() for the quick mask menu
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gtk3-port: 281/336] app: use gimp_ui_menager_up_popup_at_widget() for the quick mask menu
- Date: Fri, 4 May 2018 10:12:00 +0000 (UTC)
commit 1e7ae49eb8f004388bd393d4e211acdbd947f8b1
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]