~ted/indicator-sound/deduplicate-with-reason

« back to all changes in this revision

Viewing changes to src/bus-watch-namespace.c

  • Committer: CI Train Bot
  • Author(s): Ted Gould
  • Date: 2015-01-29 17:31:41 UTC
  • mfrom: (462.6.1 lp1307021-closed-disconnect)
  • Revision ID: ci-train-bot@canonical.com-20150129173141-2mga5ijb7ed5ki2x
Disconnect the right function from the 'closed' signal Fixes: #1307021
Approved by: Antti Kaijanmäki, PS Jenkins bot

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
  gchar            *name;
42
42
} GetNameOwnerData;
43
43
 
 
44
/* Global Variables */
44
45
static guint namespace_watcher_next_id;
45
46
static GHashTable *namespace_watcher_watchers;
46
47
 
 
48
/* Prototypes */
 
49
static void connection_closed (GDBusConnection *connection,
 
50
                               gboolean         remote_peer_vanished,
 
51
                               GError          *error,
 
52
                               gpointer         user_data);
 
53
 
47
54
static void
48
55
namespace_watcher_stop (gpointer data)
49
56
{
70
77
 
71
78
  if (watcher->connection)
72
79
    {
73
 
      g_signal_handlers_disconnect_by_func (watcher->connection, namespace_watcher_stop, watcher);
 
80
      g_signal_handlers_disconnect_by_func (watcher->connection, connection_closed, watcher);
74
81
      g_object_unref (watcher->connection);
75
82
    }
76
83