gimp r27842 - in trunk: . app/file



Author: neo
Date: Sun Dec 28 01:43:52 2008
New Revision: 27842
URL: http://svn.gnome.org/viewvc/gimp?rev=27842&view=rev

Log:
2008-12-28  Sven Neumann  <sven gimp org>

	Bug 565362 â the previously opened file is not suggested if gimp
	was started from command line

	* app/file/file-open.c (file_open_from_command_line): remember 
the
	opened image just as if it was opened using the file-open 
dialog.



Modified:
   trunk/ChangeLog
   trunk/app/file/file-open.c

Modified: trunk/app/file/file-open.c
==============================================================================
--- trunk/app/file/file-open.c	(original)
+++ trunk/app/file/file-open.c	Sun Dec 28 01:43:52 2008
@@ -543,6 +543,9 @@
       if (image)
         {
           success = TRUE;
+
+          g_object_set_data_full (G_OBJECT (gimp), "gimp-file-open-last-uri",
+                                  uri, (GDestroyNotify) g_free);
         }
       else if (status != GIMP_PDB_CANCEL)
         {
@@ -554,9 +557,8 @@
           g_clear_error (&error);
 
           g_free (filename);
+          g_free (uri);
         }
-
-      g_free (uri);
     }
   else
     {



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