mirror of https://github.com/GNOME/gimp.git
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:
parent
20504d16a9
commit
d8a3c0c08c
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue