[balsa/gtk4: 264/283] pref-manager: Resolve check/toggle-button issues




commit d0a445031751860871d39f7d9e6345fd7654af8e
Author: Peter Bloomfield <PeterBloomfield bellsouth net>
Date:   Fri Nov 20 19:10:17 2020 -0500

    pref-manager: Resolve check/toggle-button issues
    
    Also replace two obsolete signals.

 src/pref-manager.c | 12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)
---
diff --git a/src/pref-manager.c b/src/pref-manager.c
index 936cf8a7a..c62c2e61c 100644
--- a/src/pref-manager.c
+++ b/src/pref-manager.c
@@ -642,7 +642,7 @@ apply_prefs(GtkDialog * pbox)
 
     /* handling of 8-bit message parts without codeset header */
     balsa_app.convert_unknown_8bit =
-        gtk_check_button_get_active(GTK_CHECK_BUTTON
+        gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON
                                      (pui->convert_unknown_8bit[1]));
     balsa_app.convert_unknown_8bit_codeset =
         gtk_combo_box_get_active(GTK_COMBO_BOX
@@ -872,7 +872,7 @@ set_prefs(void)
                            balsa_app.debug_message);
 
     /* handling of 8-bit message parts without codeset header */
-    gtk_check_button_set_active(GTK_CHECK_BUTTON
+    gtk_toggle_button_set_active(GTK_TOGGLE_BUTTON
                                  (pui->convert_unknown_8bit[1]),
                                  balsa_app.convert_unknown_8bit);
     gtk_widget_set_sensitive(pui->convert_unknown_8bit_codeset,
@@ -1878,7 +1878,7 @@ convert_8bit_cb(GtkWidget * widget, GtkWidget * pbox)
     properties_modified_cb(widget, pbox);
 
     gtk_widget_set_sensitive(pui->convert_unknown_8bit_codeset,
-            gtk_check_button_get_active(GTK_CHECK_BUTTON(pui->convert_unknown_8bit[1])));
+            gtk_toggle_button_get_active(GTK_TOGGLE_BUTTON(pui->convert_unknown_8bit[1])));
 }
 
 /*
@@ -3243,7 +3243,7 @@ open_preferences_manager_idle(void)
     }
     g_free(name);
 
-    g_signal_connect(pui->mail_directory, "selection-changed",
+    g_signal_connect(pui->mail_directory, "file-set",
                      G_CALLBACK(properties_modified_cb), property_box);
 
     return FALSE;
@@ -3529,10 +3529,10 @@ open_preferences_manager(GtkWidget * widget, gpointer data)
 
     /* Colour */
     for (i = 0; i < MAX_QUOTED_COLOR; i++)
-        g_signal_connect(pui->quoted_color[i], "released",
+        g_signal_connect(pui->quoted_color[i], "color-set",
                          G_CALLBACK(properties_modified_cb), property_box);
 
-    g_signal_connect(pui->url_color, "released",
+    g_signal_connect(pui->url_color, "color-set",
                      G_CALLBACK(properties_modified_cb), property_box);
 
     /* handling of message parts with 8-bit chars without codeset headers */


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]