[gimp/metadata-browser] app: make the popup previews transient to their parent's toplevel
- From: Roman Joost <romanofski src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp/metadata-browser] app: make the popup previews transient to their parent's toplevel
- Date: Thu, 13 Sep 2012 00:12:14 +0000 (UTC)
commit eb1d811b9b301b68dcc3c85ad0cda687f2becb95
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]