gimp r25137 - in trunk: . plug-ins/uri



Author: neo
Date: Thu Mar 20 10:24:48 2008
New Revision: 25137
URL: http://svn.gnome.org/viewvc/gimp?rev=25137&view=rev

Log:
2008-03-20  Sven Neumann  <sven gimp org>

	* plug-ins/uri/gimpmountoperation.c: make the dialogs transient to
	the progress window if no parent or screen has been set.


Modified:
   trunk/ChangeLog
   trunk/plug-ins/uri/gimpmountoperation.c

Modified: trunk/plug-ins/uri/gimpmountoperation.c
==============================================================================
--- trunk/plug-ins/uri/gimpmountoperation.c	(original)
+++ trunk/plug-ins/uri/gimpmountoperation.c	Thu Mar 20 10:24:48 2008
@@ -29,7 +29,8 @@
 
 #include <string.h>
 
-#include <gtk/gtk.h>
+#include <libgimp/gimp.h>
+#include <libgimp/gimpui.h>
 
 #include "gimpmountoperation.h"
 
@@ -595,6 +596,9 @@
   if (priv->parent_window == NULL && priv->screen)
     gtk_window_set_screen (GTK_WINDOW (dialog), priv->screen);
 
+  if (! priv->parent_window && ! priv->screen)
+    gimp_window_set_transient (GTK_WINDOW (dialog));
+
   gtk_widget_show_all (GTK_WIDGET (dialog));
 
   g_object_ref (operation);
@@ -677,6 +681,9 @@
   if (priv->parent_window == NULL && priv->screen)
     gtk_window_set_screen (GTK_WINDOW (dialog), priv->screen);
 
+  if (! priv->parent_window && ! priv->screen)
+    gimp_window_set_transient (GTK_WINDOW (dialog));
+
   gtk_widget_show (dialog);
   g_object_ref (op);
 }



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]