[gimp/metadata-browser] app: make GimpContainerPopup transient to its parent toplevel
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] app: make GimpContainerPopup transient to its parent toplevel
- Date: Thu, 13 Sep 2012 00:11:33 +0000 (UTC)
commit 4e3ea1c4deef1c67a4797c302f820b3cbe9a7910
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.
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 82ccd28..6ae322c 100644
--- a/app/widgets/gimpcontainerpopup.c
+++ b/app/widgets/gimpcontainerpopup.c
@@ -478,6 +478,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]