Commit cb250c00 authored by Lubomir Rintel's avatar Lubomir Rintel
Browse files

editor/connection-editor: use defines for signal names

Brings joy to Thomas while grepping through code.
parent 35cd05eb
......@@ -538,7 +538,7 @@ nm_connection_editor_class_init (NMConnectionEditorClass *klass)
/* Signals */
editor_signals[EDITOR_DONE] =
g_signal_new ("done",
g_signal_new (NM_CONNECTION_EDITOR_DONE,
G_OBJECT_CLASS_TYPE (object_class),
G_SIGNAL_RUN_FIRST,
G_STRUCT_OFFSET (NMConnectionEditorClass, done),
......
......@@ -32,6 +32,8 @@
#define NM_IS_CONNECTION_EDITOR(obj) (G_TYPE_CHECK_INSTANCE_TYPE ((obj), NM_TYPE_CONNECTION_EDITOR))
#define NM_CONNECTION_EDITOR(obj) (G_TYPE_CHECK_INSTANCE_CAST ((obj), NM_TYPE_CONNECTION_EDITOR, NMConnectionEditor))
#define NM_CONNECTION_EDITOR_DONE "done"
typedef struct GetSecretsInfo GetSecretsInfo;
typedef struct {
......
......@@ -315,7 +315,7 @@ really_add_connection (FUNC_TAG_NEW_CONNECTION_RESULT_IMPL,
return;
}
g_signal_connect (editor, "done", G_CALLBACK (add_response_cb), list);
g_signal_connect (editor, NM_CONNECTION_EDITOR_DONE, G_CALLBACK (add_response_cb), list);
nm_connection_editor_run (editor);
}
......@@ -376,7 +376,7 @@ edit_connection (NMConnectionList *list, NMConnection *connection)
NM_CONNECTION (connection),
priv->client);
if (editor) {
g_signal_connect (editor, "done", G_CALLBACK (edit_done_cb), list);
g_signal_connect (editor, NM_CONNECTION_EDITOR_DONE, G_CALLBACK (edit_done_cb), list);
nm_connection_editor_run (editor);
}
}
......
......@@ -383,7 +383,7 @@ add_connection (FUNC_TAG_NEW_CONNECTION_RESULT_IMPL,
if (!editor)
return;
g_signal_connect (editor, "done", G_CALLBACK (add_response_cb), self);
g_signal_connect (editor, NM_CONNECTION_EDITOR_DONE, G_CALLBACK (add_response_cb), self);
nm_connection_editor_run (editor);
}
......@@ -446,7 +446,7 @@ edit_clicked (GtkButton *button, gpointer user_data)
if (!editor)
return;
g_signal_connect (editor, "done", G_CALLBACK (edit_done_cb), self);
g_signal_connect (editor, NM_CONNECTION_EDITOR_DONE, G_CALLBACK (edit_done_cb), self);
nm_connection_editor_run (editor);
}
......
......@@ -246,7 +246,7 @@ edit_parent (FUNC_TAG_NEW_CONNECTION_RESULT_IMPL,
if (!editor)
return;
g_signal_connect (editor, "done", G_CALLBACK (edit_parent_cb), self);
g_signal_connect (editor, NM_CONNECTION_EDITOR_DONE, G_CALLBACK (edit_parent_cb), self);
nm_connection_editor_run (editor);
}
......
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