Commit 4ce9631b authored by Sven Neumann's avatar Sven Neumann Committed by Sven Neumann

Bug 565362 – the previously opened file is not suggested if gimp was

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.


svn path=/trunk/; revision=27842
parent a7646e06
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.
2008-12-28 Martin Nordholts <martinn@svn.gnome.org>
Use gimp_item_set/get_image() instead of accessing the instance
......
......@@ -543,6 +543,9 @@ file_open_from_command_line (Gimp *gimp,
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 @@ file_open_from_command_line (Gimp *gimp,
g_clear_error (&error);
g_free (filename);
g_free (uri);
}
g_free (uri);
}
else
{
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment