From 33e30d196909b08f359f5465a9ee4fab7a632a45 Mon Sep 17 00:00:00 2001 From: Elliott Sales de Andrade Date: Tue, 21 Mar 2023 00:46:58 -0500 Subject: Remove unused callback in account editor It is no longer a dialog, and has no reference to a response callback in the `.ui` any more. Also, fix the added CSS class. Testing Done: Compiled, and opened and closed the account editor. Reviewed at https://reviews.imfreedom.org/r/2373/ --- pidgin/pidginaccounteditor.c | 15 --------------- pidgin/resources/Accounts/manager.ui | 2 +- 2 files changed, 1 insertion(+), 16 deletions(-) diff --git a/pidgin/pidginaccounteditor.c b/pidgin/pidginaccounteditor.c index aaa87ee58b..05021d668a 100644 --- a/pidgin/pidginaccounteditor.c +++ b/pidgin/pidginaccounteditor.c @@ -921,17 +921,6 @@ pidgin_account_editor_connection_changed_cb(G_GNUC_UNUSED GObject *obj, pidgin_account_editor_login_options_update_editable(editor); } -static void -pidgin_account_editor_response_cb(GtkDialog *dialog, gint response_id, - G_GNUC_UNUSED gpointer data) -{ - if(response_id == GTK_RESPONSE_APPLY) { - pidgin_account_editor_save(PIDGIN_ACCOUNT_EDITOR(dialog)); - } - - gtk_window_destroy(GTK_WINDOW(dialog)); -} - static void pidgin_account_editor_protocol_changed_cb(G_GNUC_UNUSED GObject *obj, G_GNUC_UNUSED GParamSpec *pspec, @@ -1198,10 +1187,6 @@ pidgin_account_editor_class_init(PidginAccountEditorClass *klass) { gtk_widget_class_set_template_from_resource(widget_class, "/im/pidgin/Pidgin3/Accounts/editor.ui"); - /* Dialog */ - gtk_widget_class_bind_template_callback(widget_class, - pidgin_account_editor_response_cb); - /* Login Options */ gtk_widget_class_bind_template_child(widget_class, PidginAccountEditor, login_options); diff --git a/pidgin/resources/Accounts/manager.ui b/pidgin/resources/Accounts/manager.ui index 434a225692..91c1febee0 100644 --- a/pidgin/resources/Accounts/manager.ui +++ b/pidgin/resources/Accounts/manager.ui @@ -52,7 +52,7 @@ along with this program; if not, see . boxed-list - rich-list +rich-list none 1 -- cgit v1.2.1