simplified the code that selects an image file by its URI.

2004-09-07  Michael Natterer  <mitch@gimp.org>

	* app/widgets/gimpfiledialog.c (gimp_file_dialog_set_uri):
	simplified the code that selects an image file by its URI.
This commit is contained in:
Michael Natterer 2004-09-07 10:45:36 +00:00 committed by Michael Natterer
parent 20504d16a9
commit d8a3c0c08c
2 changed files with 6 additions and 4 deletions

View file

@ -1,3 +1,8 @@
2004-09-07 Michael Natterer <mitch@gimp.org>
* app/widgets/gimpfiledialog.c (gimp_file_dialog_set_uri):
simplified the code that selects an image file by its URI.
2004-09-07 Simon Budig <simon@gimp.org>
* app/widgets/gimpviewrendererbrush.c: Added an indicator for

View file

@ -378,10 +378,7 @@ gimp_file_dialog_set_uri (GimpFileDialog *dialog,
if (gimage)
{
gchar *filename = gimp_image_get_filename (gimage);
if (filename)
real_uri = g_filename_to_uri (filename, NULL, NULL);
real_uri = g_strdup (gimp_object_get_name (GIMP_OBJECT (gimage)));
}
else if (uri)
{