summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorElliott Sales de Andrade <quantum.analyst@gmail.com>2023-03-21 00:46:58 -0500
committerElliott Sales de Andrade <quantum.analyst@gmail.com>2023-03-21 00:46:58 -0500
commit33e30d196909b08f359f5465a9ee4fab7a632a45 (patch)
treea3e826b699dcd1bc77c25c365990734a8b26607e
parenta7030bbc8773c9cb2e880e2fd5176e78e3665e78 (diff)
downloadpidgin-33e30d196909b08f359f5465a9ee4fab7a632a45.tar.gz
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/
-rw-r--r--pidgin/pidginaccounteditor.c15
-rw-r--r--pidgin/resources/Accounts/manager.ui2
2 files changed, 1 insertions, 16 deletions
diff --git a/pidgin/pidginaccounteditor.c b/pidgin/pidginaccounteditor.c
index aaa87ee58b..05021d668a 100644
--- a/pidgin/pidginaccounteditor.c
+++ b/pidgin/pidginaccounteditor.c
@@ -922,17 +922,6 @@ pidgin_account_editor_connection_changed_cb(G_GNUC_UNUSED GObject *obj,
}
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 @@ 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 <https://www.gnu.org/licenses/>.
<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"/>