correctly convert relative paths to URIs. Append the resulting URI only if
2004-07-22 Michael Natterer <mitch@gimp.org> * tools/gimp-remote.c (main): correctly convert relative paths to URIs. Append the resulting URI only if it's not NULL.
This commit is contained in:

committed by
Michael Natterer

parent
a5760e33fe
commit
fe9580449a
@ -1,3 +1,8 @@
|
||||
2004-07-22 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* tools/gimp-remote.c (main): correctly convert relative paths to
|
||||
URIs. Append the resulting URI only if it's not NULL.
|
||||
|
||||
2004-07-22 Michael Natterer <mitch@gimp.org>
|
||||
|
||||
* app/widgets/gimptoolbox.c (toolbox_create_tools): connect to
|
||||
|
@ -384,7 +384,7 @@ main (gint argc,
|
||||
{
|
||||
gchar *abs = g_build_filename (cwd, argv[i], NULL);
|
||||
|
||||
file_uri = g_strconcat (abs, NULL, NULL);
|
||||
file_uri = g_filename_to_uri (abs, NULL, NULL);
|
||||
|
||||
g_free (abs);
|
||||
}
|
||||
@ -394,12 +394,15 @@ main (gint argc,
|
||||
file_uri = g_strdup (argv[i]);
|
||||
}
|
||||
|
||||
if (file_uri)
|
||||
{
|
||||
if (file_list->len > 0)
|
||||
file_list = g_string_append_c (file_list, '\n');
|
||||
|
||||
file_list = g_string_append (file_list, file_uri);
|
||||
g_free (file_uri);
|
||||
}
|
||||
}
|
||||
|
||||
display = gdk_display_get_default ();
|
||||
screen = gdk_screen_get_default ();
|
||||
|
Reference in New Issue
Block a user