# HG changeset patch # User Elliott Sales de Andrade # Date 1661246909 18000 # Node ID 732b1fcb8e31a2180ef8d3f1671bfee19f078d55 # Parent 787ca853b6c41af561f41dd7bcde9131d14ec809 Fix prefs on GTK4 Testing Done: Opened prefs, saw no warnings, toggled a few buttons, switched proxy modes, tried out audio & video test. Video test crashes as we probably need to port to a different sink. Reviewed at https://reviews.imfreedom.org/r/1634/ diff -r 787ca853b6c4 -r 732b1fcb8e31 pidgin/prefs/pidginnetworkprefs.c --- a/pidgin/prefs/pidginnetworkprefs.c Tue Aug 23 03:44:28 2022 -0500 +++ b/pidgin/prefs/pidginnetworkprefs.c Tue Aug 23 04:28:29 2022 -0500 @@ -136,7 +136,7 @@ } auto_ip_text = g_strdup_printf(_("Use _automatically detected IP address: %s"), ip); - gtk_button_set_label(GTK_BUTTON(button), auto_ip_text); + gtk_check_button_set_label(GTK_CHECK_BUTTON(button), auto_ip_text); g_free(auto_ip_text); g_list_free_full(list, g_free); } diff -r 787ca853b6c4 -r 732b1fcb8e31 pidgin/prefs/pidginprefs.c --- a/pidgin/prefs/pidginprefs.c Tue Aug 23 03:44:28 2022 -0500 +++ b/pidgin/prefs/pidginprefs.c Tue Aug 23 04:28:29 2022 -0500 @@ -370,7 +370,7 @@ set_bool_pref(GtkWidget *w, const char *key) { purple_prefs_set_bool(key, - gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(w))); + gtk_check_button_get_active(GTK_CHECK_BUTTON(w))); } GtkWidget * @@ -379,7 +379,7 @@ GtkWidget *button; button = gtk_check_button_new_with_mnemonic(text); - gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), + gtk_check_button_set_active(GTK_CHECK_BUTTON(button), purple_prefs_get_bool(key)); gtk_box_append(GTK_BOX(page), button); @@ -393,7 +393,7 @@ void pidgin_prefs_bind_checkbox(const char *key, GtkWidget *button) { - gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON(button), + gtk_check_button_set_active(GTK_CHECK_BUTTON(button), purple_prefs_get_bool(key)); g_signal_connect(G_OBJECT(button), "toggled", G_CALLBACK(set_bool_pref), (char *)key); diff -r 787ca853b6c4 -r 732b1fcb8e31 pidgin/resources/Prefs/away.ui --- a/pidgin/resources/Prefs/away.ui Tue Aug 23 03:44:28 2022 -0500 +++ b/pidgin/resources/Prefs/away.ui Tue Aug 23 04:28:29 2022 -0500 @@ -77,7 +77,7 @@