]> www.fi.muni.cz Git - evince.git/commitdiff
Fix for dbus 0.33. bug #309975
authorMarco Pesenti Gritti <mpg@redhat.com>
Mon, 11 Jul 2005 10:25:56 +0000 (10:25 +0000)
committerMarco Pesenti Gritti <marco@src.gnome.org>
Mon, 11 Jul 2005 10:25:56 +0000 (10:25 +0000)
2005-07-11  Marco Pesenti Gritti  <mpg@redhat.com>

        * shell/main.c: (load_files_remote):

        Fix for dbus 0.33. bug #309975

ChangeLog
shell/main.c

index 4cf8b64b17be0d51d308cb14c1cd5eba626aeceb..32756913d01d0165efc30cceb94991bf8389395f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2005-07-11  Marco Pesenti Gritti  <mpg@redhat.com>
+
+       * shell/main.c: (load_files_remote):
+
+       Fix for dbus 0.33. bug #309975
+
 2005-07-08  Marco Pesenti Gritti  <mpg@redhat.com>
 
        * properties/ev-properties-main.c: (ev_properties_get_pages):
index f6600f0f19edafc347dddff103e28797f0ee8066..334d366e5b64923fa1832d1d502764a80d5c9d0d 100644 (file)
@@ -92,7 +92,15 @@ load_files_remote (const char **files)
                                                    "/org/gnome/evince/Evince",
                                                    "org.gnome.evince.Application");
        if (!files) {
-#if DBUS_VERSION < 35
+#if DBUS_VERSION <= 33
+               call = dbus_g_proxy_begin_call (remote_object, "OpenWindow", DBUS_TYPE_INVALID);
+
+               if (!dbus_g_proxy_end_call (remote_object, call, &error, DBUS_TYPE_INVALID)) {
+                       g_warning (error->message);
+                       g_clear_error (&error);
+                       return FALSE;
+               }
+#elif DBUS_VERSION == 34
                call = dbus_g_proxy_begin_call (remote_object, "OpenWindow", G_TYPE_INVALID);
 
                if (!dbus_g_proxy_end_call (remote_object, call, &error, G_TYPE_INVALID)) {
@@ -117,7 +125,18 @@ load_files_remote (const char **files)
 
                uri = gnome_vfs_make_uri_from_shell_arg (files[i]);
                page_label = ev_page_label ? ev_page_label : ""; 
-#if DBUS_VERSION < 35
+#if DBUS_VERSION <= 33
+               call = dbus_g_proxy_begin_call (remote_object, "OpenURI",
+                                               DBUS_TYPE_STRING, &uri,
+                                               DBUS_TYPE_STRING, &page_label,
+                                               DBUS_TYPE_INVALID);
+
+               if (!dbus_g_proxy_end_call (remote_object, call, &error, DBUS_TYPE_INVALID)) {
+                       g_warning (error->message);
+                       g_clear_error (&error);
+                       result = FALSE;
+               }
+#elif DBUS_VERSION == 34
                call = dbus_g_proxy_begin_call (remote_object, "OpenURI",
                                                G_TYPE_STRING, uri,
                                                G_TYPE_STRING, page_label,