Index: ChangeLog =================================================================== RCS file: /cvs/gnome/evince/ChangeLog,v retrieving revision 1.556 diff -u -u -r1.556 ChangeLog --- ChangeLog 11 Jul 2005 10:25:56 -0000 1.556 +++ ChangeLog 11 Jul 2005 10:56:35 -0000 @@ -1,3 +1,9 @@ +2005-07-11 Carlos Garcia Campos + + * shell/main.c: (load_files_remote): + + Allow open more than one file + 2005-07-11 Marco Pesenti Gritti * shell/main.c: (load_files_remote): Index: shell/main.c =================================================================== RCS file: /cvs/gnome/evince/shell/main.c,v retrieving revision 1.21 diff -u -u -r1.21 main.c --- shell/main.c 11 Jul 2005 10:25:56 -0000 1.21 +++ shell/main.c 11 Jul 2005 10:56:36 -0000 @@ -74,6 +74,7 @@ int i; GError *error = NULL; DBusGConnection *connection; + gboolean result = FALSE; #if DBUS_VERSION < 35 DBusGPendingCall *call; #endif @@ -119,7 +120,6 @@ } for (i = 0; files[i]; i++) { - gboolean result = TRUE; const char *page_label; char *uri; @@ -134,7 +134,8 @@ if (!dbus_g_proxy_end_call (remote_object, call, &error, DBUS_TYPE_INVALID)) { g_warning (error->message); g_clear_error (&error); - result = FALSE; + g_free (uri); + continue; } #elif DBUS_VERSION == 34 call = dbus_g_proxy_begin_call (remote_object, "OpenURI", @@ -145,7 +146,8 @@ if (!dbus_g_proxy_end_call (remote_object, call, &error, G_TYPE_INVALID)) { g_warning (error->message); g_clear_error (&error); - result = FALSE; + g_free (uri); + continue; } #else if (!dbus_g_proxy_call (remote_object, "OpenURI", &error, @@ -154,14 +156,15 @@ G_TYPE_INVALID)) { g_warning (error->message); g_clear_error (&error); - result = FALSE; + g_free (uri); + continue; } #endif g_free (uri); - return result; + result = TRUE; } - return TRUE; + return result; } #endif /* ENABLE_DBUS */