diff libpurple/dbus-server.c @ 18032:fbebe15c91a7

propagate from branch 'im.pidgin.pidgin' (head bdd3cb040100fe925456b862d03cc6c5a61648ef) to branch 'im.pidgin.pidgin.2.1.0' (head d848f911176cfb2100a9f60b1d6bacdfe86e956e)
author Luke Schierer <lschiere@pidgin.im>
date Sat, 02 Jun 2007 13:09:49 +0000
parents df911a06e09e 176d0fc8bc16
children 3f3125b91728
line wrap: on
line diff
--- a/libpurple/dbus-server.c	Sat Jun 02 06:26:24 2007 +0000
+++ b/libpurple/dbus-server.c	Sat Jun 02 13:09:49 2007 +0000
@@ -65,6 +65,12 @@
 static GHashTable *map_id_type;
 
 static gchar *init_error;
+static int dbus_request_name_reply = DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER;
+
+gboolean purple_dbus_is_owner(void)
+{
+	return(DBUS_REQUEST_NAME_REPLY_PRIMARY_OWNER == dbus_request_name_reply);
+}
 
 /**
  * This function initializes the pointer-id traslation system.  It
@@ -592,6 +598,7 @@
 		return;
 	}
 
+	dbus_request_name_reply =
 	result = dbus_bus_request_name(purple_dbus_connection,
 			DBUS_SERVICE_PURPLE, 0, &error);