mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2026-02-14 23:50:29 +01:00
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
This commit is contained in:
parent
1ea8594505
commit
8b6b5aea0f
2 changed files with 13 additions and 1 deletions
|
|
@ -1,3 +1,8 @@
|
|||
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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue