diff options
-rw-r--r-- | src/connection-editor/nm-connection-list.c | 21 | ||||
-rw-r--r-- | src/connection-editor/nm-connection-list.h | 1 | ||||
-rw-r--r-- | src/connection-editor/nm-connection-list.ui | 1 |
3 files changed, 1 insertions, 22 deletions
diff --git a/src/connection-editor/nm-connection-list.c b/src/connection-editor/nm-connection-list.c index d864e1f8..d3bb5fbe 100644 --- a/src/connection-editor/nm-connection-list.c +++ b/src/connection-editor/nm-connection-list.c @@ -38,7 +38,6 @@ extern gboolean nm_ce_keep_above; enum { - LIST_DONE, EDITING_DONE, LIST_LAST_SIGNAL }; @@ -449,15 +448,6 @@ selection_changed_cb (GtkTreeSelection *selection, gpointer user_data) } } -static void -list_close_cb (GtkDialog *dialog, gpointer user_data) -{ - g_signal_emit (NM_CONNECTION_LIST (user_data), - list_signals[LIST_DONE], - 0, - GTK_RESPONSE_CLOSE); -} - static gboolean key_press_cb (GtkWidget *widget, GdkEvent *event, gpointer user_data) { @@ -527,19 +517,11 @@ nm_connection_list_class_init (NMConnectionListClass *klass) object_class->dispose = dispose; /* Signals */ - list_signals[LIST_DONE] = - g_signal_new ("done", - G_OBJECT_CLASS_TYPE (object_class), - G_SIGNAL_RUN_FIRST, - G_STRUCT_OFFSET (NMConnectionListClass, done), - NULL, NULL, NULL, - G_TYPE_NONE, 1, G_TYPE_INT); - list_signals[EDITING_DONE] = g_signal_new ("editing-done", G_OBJECT_CLASS_TYPE (object_class), G_SIGNAL_RUN_FIRST, - G_STRUCT_OFFSET (NMConnectionListClass, done), + G_STRUCT_OFFSET (NMConnectionListClass, editing_done), NULL, NULL, NULL, G_TYPE_NONE, 1, G_TYPE_INT); @@ -557,7 +539,6 @@ nm_connection_list_class_init (NMConnectionListClass *klass) gtk_widget_class_bind_template_callback (widget_class, add_clicked); gtk_widget_class_bind_template_callback (widget_class, do_edit); gtk_widget_class_bind_template_callback (widget_class, delete_clicked); - gtk_widget_class_bind_template_callback (widget_class, list_close_cb); gtk_widget_class_bind_template_callback (widget_class, selection_changed_cb); gtk_widget_class_bind_template_callback (widget_class, key_press_cb); gtk_widget_class_bind_template_callback (widget_class, start_search); diff --git a/src/connection-editor/nm-connection-list.h b/src/connection-editor/nm-connection-list.h index 88f5eef4..75ecba8d 100644 --- a/src/connection-editor/nm-connection-list.h +++ b/src/connection-editor/nm-connection-list.h @@ -44,7 +44,6 @@ typedef struct { GtkApplicationWindowClass parent_class; /* Signals */ - void (*done) (NMConnectionList *list, gint result); void (*editing_done) (NMConnectionList *list, gint result); } NMConnectionListClass; diff --git a/src/connection-editor/nm-connection-list.ui b/src/connection-editor/nm-connection-list.ui index 8342e622..24f3c31e 100644 --- a/src/connection-editor/nm-connection-list.ui +++ b/src/connection-editor/nm-connection-list.ui @@ -10,7 +10,6 @@ <property name="default_height">400</property> <property name="gravity">north-east</property> <property name="show_menubar">False</property> - <signal name="destroy" handler="list_close_cb" swapped="no"/> <signal name="key-press-event" handler="key_press_cb" swapped="no"/> <child> <object class="GtkBox" id="box"> |