diff options
author | Jeff Muizelaar <jrmuizel@nit.ca> | 2005-01-04 15:53:49 (GMT) |
---|---|---|
committer | Marco Pesenti Gritti <marco@src.gnome.org> | 2005-01-04 15:53:49 (GMT) |
commit | a88a1cde73b054120966e67bc0ad361457c5b4d2 (patch) | |
tree | 4342ca18e826f7a264521d701b38b8620068d61f /shell/main.c | |
parent | 560d83a31c3acab2e640a8dfa8c6d6097baeea7a (diff) |
use gnome_vfs_make_uri_from_shell_arg so that relative paths work from the
2005-01-04 Jeff Muizelaar <jrmuizel@nit.ca>
* shell/main.c (load_files):
use gnome_vfs_make_uri_from_shell_arg so that relative paths work
from the command line and because it seems more appropriate.
Diffstat (limited to 'shell/main.c')
-rw-r--r-- | shell/main.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/shell/main.c b/shell/main.c index 3deac7a..fcda1f1 100644 --- a/shell/main.c +++ b/shell/main.c @@ -48,21 +48,15 @@ load_files (const char **files) } for (i = 0; files[i]; i++) { - const char *uri; - char *freeme = NULL; - char *scheme; - - if ((scheme = gnome_vfs_get_uri_scheme (files[i]))) - uri = files[i]; - else - uri = freeme = gnome_vfs_get_uri_from_local_path (files[i]); - + char *uri; + + uri = gnome_vfs_make_uri_from_shell_arg (files[i]); + window = GTK_WIDGET (ev_application_new_window (EV_APP)); gtk_widget_show (window); ev_window_open (EV_WINDOW (window), uri); - g_free (scheme); - g_free (freeme); + g_free (uri); } } |