aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2015-01-29 17:31:41 +0000
committerCI Train Bot <ci-train-bot@canonical.com>2015-01-29 17:31:41 +0000
commit2f4b640373546b86b5f0d3be12b72b3d6cdace98 (patch)
treef56eee7de3d4fcc2d41ae959dd15a287e9fdbc39 /src
parent9aa6a9af39006d4bceb445aeb9707559f40424f1 (diff)
parent4ab5d1931bc0e8925f2fa32b42ea7c161a7bfc10 (diff)
downloadayatana-indicator-sound-2f4b640373546b86b5f0d3be12b72b3d6cdace98.tar.gz
ayatana-indicator-sound-2f4b640373546b86b5f0d3be12b72b3d6cdace98.tar.bz2
ayatana-indicator-sound-2f4b640373546b86b5f0d3be12b72b3d6cdace98.zip
Disconnect the right function from the 'closed' signal Fixes: #1307021
Approved by: Antti Kaijanmäki, PS Jenkins bot
Diffstat (limited to 'src')
-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);
}