aboutsummaryrefslogtreecommitdiff
path: root/src/messages-service-dbus.c
diff options
context:
space:
mode:
authorLars Uebernickel <lars.uebernickel@canonical.com>2012-06-25 23:05:01 +0200
committerLars Uebernickel <lars.uebernickel@canonical.com>2012-06-25 23:05:01 +0200
commitcf241b32dd111b6b57ddd95bb06f3ad558c00a88 (patch)
treeb5c1f8ac325f198118b43bcc23276f020a509c25 /src/messages-service-dbus.c
parente500cbf335ba59066db88088ff18a86a4b45113c (diff)
downloadayatana-indicator-messages-cf241b32dd111b6b57ddd95bb06f3ad558c00a88.tar.gz
ayatana-indicator-messages-cf241b32dd111b6b57ddd95bb06f3ad558c00a88.tar.bz2
ayatana-indicator-messages-cf241b32dd111b6b57ddd95bb06f3ad558c00a88.zip
messages-service.c: get session bus asynchronously
Diffstat (limited to 'src/messages-service-dbus.c')
-rw-r--r--src/messages-service-dbus.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/src/messages-service-dbus.c b/src/messages-service-dbus.c
index 3a39172..211b1f5 100644
--- a/src/messages-service-dbus.c
+++ b/src/messages-service-dbus.c
@@ -498,3 +498,14 @@ message_service_dbus_set_icon (MessageServiceDbus * self, gboolean hidden)
}
return;
}
+
+GDBusConnection *
+message_service_dbus_get_connection (MessageServiceDbus *msd)
+{
+ MessageServiceDbusPrivate * priv;
+
+ g_return_val_if_fail (IS_MESSAGE_SERVICE_DBUS (msd), NULL);
+
+ priv = MESSAGE_SERVICE_DBUS_GET_PRIVATE(msd);
+ return priv->connection;
+}