[gimp] app: make the popup previews transient to their parent's toplevel
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: make the popup previews transient to their parent's toplevel
- Date: Thu, 10 May 2012 17:44:08 +0000 (UTC)
commit ffb559547c83733310fcfc006fb5a982253b62ac
Author: Michael Natterer <mitch gimp org>
Date: Thu May 10 19:42:05 2012 +0200
app: make the popup previews transient to their parent's toplevel
so they don't appear below the dock. Seems to happen on OSX only,
but is the right things to do on all platforms.
app/widgets/gimpview-popup.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/app/widgets/gimpview-popup.c b/app/widgets/gimpview-popup.c
index ef8b9c6..9489a2f 100644
--- a/app/widgets/gimpview-popup.c
+++ b/app/widgets/gimpview-popup.c
@@ -207,6 +207,8 @@ gimp_view_popup_timeout (GimpViewPopup *popup)
gtk_window_set_resizable (GTK_WINDOW (window), FALSE);
gtk_window_set_screen (GTK_WINDOW (window), screen);
+ gtk_window_set_transient_for (GTK_WINDOW (window),
+ GTK_WINDOW (gtk_widget_get_toplevel (popup->widget)));
frame = gtk_frame_new (NULL);
gtk_frame_set_shadow_type (GTK_FRAME (frame), GTK_SHADOW_OUT);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]