Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/shell
diff options
context:
space:
mode:
authorCarlos Garcia Campos <carlosgc@gnome.org>2006-02-12 18:26:25 (GMT)
committer Carlos Garcia Campos <carlosgc@src.gnome.org>2006-02-12 18:26:25 (GMT)
commita3cb68f63b899f5b7ea61838eaf3ade5a8c4eac9 (patch)
tree58ee2b888477878c5e5d0ded680150d504e5f137 /shell
parent8cdda565e431dd5714942601b20ee71f0abf0799 (diff)
Use DBUS_NAME_FLAG_DO_NOT_QUEUE flag in RequestName method when
2006-02-12 Carlos Garcia Campos <carlosgc@gnome.org> * shell/ev-application.c: Use DBUS_NAME_FLAG_DO_NOT_QUEUE flag in RequestName method when dbus>=0.60, so that the request is not queued.
Diffstat (limited to 'shell')
-rw-r--r--shell/ev-application.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/shell/ev-application.c b/shell/ev-application.c
index 8802f68..c0a7ea2 100644
--- a/shell/ev-application.c
+++ b/shell/ev-application.c
@@ -73,12 +73,22 @@ ev_application_register_service (EvApplication *application)
DBUS_PATH_DBUS,
DBUS_INTERFACE_DBUS);
+#if DBUS_VERSION >= 60
if (!org_freedesktop_DBus_request_name (driver_proxy,
APPLICATION_SERVICE_NAME,
+ DBUS_NAME_FLAG_DO_NOT_QUEUE,
+ &request_name_result, &err)) {
+ g_warning ("Service registration failed.");
+ g_clear_error (&err);
+ }
+#else
+ if (!org_freedesktop_DBus_request_name (driver_proxy,
+ APPLICATION_SERVICE_NAME,
0, &request_name_result, &err)) {
g_warning ("Service registration failed.");
g_clear_error (&err);
}
+#endif
if (request_name_result == DBUS_REQUEST_NAME_REPLY_EXISTS) {
return FALSE;