pidgin/pidgin

Remove unused callback in account editor

13 months ago, Elliott Sales de Andrade
c8bf9a5663b1
Parents 50558d740eff
Children 4185b4043214
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/
--- a/pidgin/pidginaccounteditor.c Tue Mar 21 00:40:41 2023 -0500
+++ b/pidgin/pidginaccounteditor.c Tue Mar 21 00:46:58 2023 -0500
@@ -922,17 +922,6 @@
}
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,
gpointer data)
@@ -1198,10 +1187,6 @@
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);
--- a/pidgin/resources/Accounts/manager.ui Tue Mar 21 00:40:41 2023 -0500
+++ b/pidgin/resources/Accounts/manager.ui Tue Mar 21 00:46:58 2023 -0500
@@ -52,7 +52,7 @@
<child>
<object class="GtkListBox" id="list_box">
<property name="css-classes">boxed-list
- rich-list</property>
+rich-list</property>
<property name="selection-mode">none</property>
<property name="show-separators">1</property>
<signal name="row-activated" handler="pidgin_account_manager_row_activated_cb" swapped="no"/>