gimp r25097 - trunk/plug-ins/uri



Author: neo
Date: Wed Mar 12 17:23:49 2008
New Revision: 25097
URL: http://svn.gnome.org/viewvc/gimp?rev=25097&view=rev

Log:
ref the operation while the dialogs are active


Modified:
   trunk/plug-ins/uri/uri-backend-gio.c

Modified: trunk/plug-ins/uri/uri-backend-gio.c
==============================================================================
--- trunk/plug-ins/uri/uri-backend-gio.c	(original)
+++ trunk/plug-ins/uri/uri-backend-gio.c	Wed Mar 12 17:23:49 2008
@@ -390,6 +390,7 @@
     }
 
   gtk_widget_destroy (GTK_WIDGET (dialog));
+  g_object_unref (operation);
 }
 
 static void
@@ -549,8 +550,9 @@
     gtk_widget_grab_focus (focus);
 
   gimp_window_set_transient (GTK_WINDOW (dialog));
-
   gtk_widget_show (dialog);
+
+  g_object_ref (operation);
 }
 
 static void
@@ -571,6 +573,7 @@
     }
 
   gtk_widget_destroy (GTK_WIDGET (dialog));
+  g_object_unref (operation);
 }
 
 static void
@@ -618,6 +621,7 @@
                     operation);
 
   gimp_window_set_transient (GTK_WINDOW (dialog));
-
   gtk_widget_show (GTK_WIDGET (dialog));
+
+  g_object_ref (operation);
 }



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