Commit 4870786a authored by Dan Winship's avatar Dan Winship
Browse files

libnm-core: add missing NMConnection signal class handlers

Add class handlers for the "secrets-cleared" and "changed" signals.
("secrets-updated" already had one.)
parent 32c26a85
...@@ -2094,7 +2094,8 @@ nm_connection_class_init (NMConnectionClass *klass) ...@@ -2094,7 +2094,8 @@ nm_connection_class_init (NMConnectionClass *klass)
g_signal_new (NM_CONNECTION_SECRETS_CLEARED, g_signal_new (NM_CONNECTION_SECRETS_CLEARED,
G_OBJECT_CLASS_TYPE (object_class), G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_FIRST, G_SIGNAL_RUN_FIRST,
0, NULL, NULL, G_STRUCT_OFFSET (NMConnectionClass, secrets_cleared),
NULL, NULL,
g_cclosure_marshal_VOID__VOID, g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0); G_TYPE_NONE, 0);
...@@ -2110,7 +2111,8 @@ nm_connection_class_init (NMConnectionClass *klass) ...@@ -2110,7 +2111,8 @@ nm_connection_class_init (NMConnectionClass *klass)
g_signal_new (NM_CONNECTION_CHANGED, g_signal_new (NM_CONNECTION_CHANGED,
G_OBJECT_CLASS_TYPE (object_class), G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_FIRST, G_SIGNAL_RUN_FIRST,
0, NULL, NULL, G_STRUCT_OFFSET (NMConnectionClass, changed),
NULL, NULL,
g_cclosure_marshal_VOID__VOID, g_cclosure_marshal_VOID__VOID,
G_TYPE_NONE, 0); G_TYPE_NONE, 0);
} }
...@@ -126,7 +126,10 @@ typedef struct { ...@@ -126,7 +126,10 @@ typedef struct {
GObjectClass parent; GObjectClass parent;
/* Signals */ /* Signals */
void (*secrets_updated) (NMConnection *connection, const char * setting); void (*secrets_updated) (NMConnection *connection,
const char *setting);
void (*secrets_cleared) (NMConnection *connection);
void (*changed) (NMConnection *connection);
/*< private >*/ /*< private >*/
gpointer padding[8]; gpointer padding[8];
......
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