aboutsummaryrefslogtreecommitdiff
path: root/src/bus-watch-namespace.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2015-01-30 10:28:05 -0600
committerTed Gould <ted@gould.cx>2015-01-30 10:28:05 -0600
commit1e149cd05cf4b1bedba53e1104194662ad350de5 (patch)
tree2d704791954c70b397e9a70a2cd1600730d2b50b /src/bus-watch-namespace.c
parentbc90929adb5637cc0f77dfeba64082b26c435fc7 (diff)
parent59dfdd3906fd238e5ea3606d72b938677096e2c5 (diff)
downloadayatana-indicator-sound-1e149cd05cf4b1bedba53e1104194662ad350de5.tar.gz
ayatana-indicator-sound-1e149cd05cf4b1bedba53e1104194662ad350de5.tar.bz2
ayatana-indicator-sound-1e149cd05cf4b1bedba53e1104194662ad350de5.zip
Update to trunk
Diffstat (limited to 'src/bus-watch-namespace.c')
-rw-r--r--src/bus-watch-namespace.c9
1 files changed, 8 insertions, 1 deletions
diff --git a/src/bus-watch-namespace.c b/src/bus-watch-namespace.c
index ad4e7ad..66ad2b2 100644
--- a/src/bus-watch-namespace.c
+++ b/src/bus-watch-namespace.c
@@ -41,9 +41,16 @@ typedef struct
gchar *name;
} GetNameOwnerData;
+/* Global Variables */
static guint namespace_watcher_next_id;
static GHashTable *namespace_watcher_watchers;
+/* Prototypes */
+static void connection_closed (GDBusConnection *connection,
+ gboolean remote_peer_vanished,
+ GError *error,
+ gpointer user_data);
+
static void
namespace_watcher_stop (gpointer data)
{
@@ -70,7 +77,7 @@ namespace_watcher_stop (gpointer data)
if (watcher->connection)
{
- g_signal_handlers_disconnect_by_func (watcher->connection, namespace_watcher_stop, watcher);
+ g_signal_handlers_disconnect_by_func (watcher->connection, connection_closed, watcher);
g_object_unref (watcher->connection);
}