[gimp/gtk3-port: 281/362] 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/362] app: use gimp_ui_menager_up_popup_at_widget() for the quick mask menu
- Date: Mon, 7 May 2018 19:28:24 +0000 (UTC)
commit b651028d54e44487196fa13ef6d173c7b7d59def
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]