static void rebuild_on_property_changed (GObject *object, GParamSpec *spec, gpointer list) { nmt_connect_connection_list_rebuild (list); }
static void rebuild_on_devices_changed (NMClient *client, NMDevice *device, gpointer list) { nmt_connect_connection_list_rebuild (list); }
static void nmt_connect_connection_list_constructed (GObject *object) { NmtConnectConnectionList *list = NMT_CONNECT_CONNECTION_LIST (object); g_signal_connect (nm_client, "notify::" NM_CLIENT_ACTIVE_CONNECTIONS, G_CALLBACK (rebuild_on_property_changed), list); g_signal_connect (nm_client, "notify::" NM_CLIENT_CONNECTIONS, G_CALLBACK (rebuild_on_property_changed), list); g_signal_connect (nm_client, "notify::" NM_CLIENT_DEVICES, G_CALLBACK (rebuild_on_property_changed), list); nmt_connect_connection_list_rebuild (list); G_OBJECT_CLASS (nmt_connect_connection_list_parent_class)->constructed (object); }