[gimp/gimp-2-8] app: make GimpContainerPopup transient to its parent toplevel
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/gimp-2-8] app: make GimpContainerPopup transient to its parent toplevel
- Date: Tue, 8 May 2012 19:36:28 +0000 (UTC)
commit 7f37903b11e2f4db92814d152484747bf35a582f
Author: Michael Natterer <mitch gimp org>
Date: Tue May 8 21:32:09 2012 +0200
app: make GimpContainerPopup transient to its parent toplevel
so it doesn't appear under the dock it's invoked from. Only
needed on OSX, but the right thing to do on all platforms.
(cherry picked from commit 3545140ad870139c66e011e0c2939fd35ad7d883)
app/widgets/gimpcontainerpopup.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/app/widgets/gimpcontainerpopup.c b/app/widgets/gimpcontainerpopup.c
index 21c585a..b8e32d3 100644
--- a/app/widgets/gimpcontainerpopup.c
+++ b/app/widgets/gimpcontainerpopup.c
@@ -477,6 +477,10 @@ gimp_container_popup_show (GimpContainerPopup *popup,
if (y + requisition.height > rect.y + rect.height)
y = orig_y - requisition.height;
+ gtk_window_set_screen (GTK_WINDOW (popup), screen);
+ gtk_window_set_transient_for (GTK_WINDOW (popup),
+ GTK_WINDOW (gtk_widget_get_toplevel (widget)));
+
gtk_window_move (GTK_WINDOW (popup), x, y);
gtk_widget_show (GTK_WIDGET (popup));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]