Skip to content

Commit

Permalink
Merge pull request #221 from fmuellner/emit-more-changed-signals
Browse files Browse the repository at this point in the history
network-monitor: Use ::network-changed for change notifications
  • Loading branch information
matthiasclasen authored Sep 3, 2018
2 parents ff98da6 + e90c19c commit f3939da
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/network-monitor.c
Original file line number Diff line number Diff line change
Expand Up @@ -211,9 +211,9 @@ network_monitor_iface_init (XdpNetworkMonitorIface *iface)
}

static void
notify (GObject *object,
GParamSpec *pspec,
NetworkMonitor *nm)
network_changed (GObject *object,
gboolean network_available,
NetworkMonitor *nm)
{
xdp_network_monitor_emit_changed (XDP_NETWORK_MONITOR (nm));
}
Expand All @@ -223,7 +223,7 @@ network_monitor_init (NetworkMonitor *nm)
{
nm->monitor = g_network_monitor_get_default ();

g_signal_connect (nm->monitor, "notify", G_CALLBACK (notify), nm);
g_signal_connect (nm->monitor, "network-changed", G_CALLBACK (network_changed), nm);

xdp_network_monitor_set_version (XDP_NETWORK_MONITOR (nm), 3);
}
Expand Down

0 comments on commit f3939da

Please sign in to comment.