Commit 8b6b5aea authored by Ray Strode's avatar Ray Strode
Browse files

2005-05-05 Ray Strode <rstrode@redhat.com>

	* src/nm-netlink-monitor.c:
		- Use clear_event_source instead of g_nullify_pointer() again.


git-svn-id: http://svn-archive.gnome.org/svn/NetworkManager/trunk@610 4912f4e0-d625-0410-9fb7-b9a5a253dbdc
parent 1ea85945
2005-05-05 Ray Strode <rstrode@redhat.com>
* src/nm-netlink-monitor.c:
- Use clear_event_source instead of g_nullify_pointer() again.
2005-05-05 Dan Williams <dcbw@redhat.com>
* gnome/applet/main.c
......
......@@ -268,6 +268,13 @@ nm_netlink_monitor_new (void)
return NM_NETLINK_MONITOR (instance);
}
static void
nm_netlink_monitor_clear_event_source (NmNetlinkMonitor *monitor)
{
monitor->priv->event_source = NULL;
}
void
nm_netlink_monitor_attach (NmNetlinkMonitor *monitor,
GMainContext *context)
......@@ -290,7 +297,7 @@ nm_netlink_monitor_attach (NmNetlinkMonitor *monitor,
(GSourceFunc) nm_netlink_monitor_event_handler,
monitor,
(GDestroyNotify)
g_nullify_pointer);
nm_netlink_monitor_clear_event_source);
g_source_attach (event_source, context);
monitor->priv->event_source = event_source;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment