[easytag] Fix initial state of ID3v2 character set radio



commit 397ce70660c38c2e679faa4a4ffdf9feb9e796d6
Author: David King <amigadave amigadave com>
Date:   Mon Nov 14 23:33:38 2016 +0000

    Fix initial state of ID3v2 character set radio
    
    Bind the id3v2-enable-unicode setting to the secondary radio button in
    the group, to ensure that the state is restored correctly when the
    preferences dialogue is first displayed.

 src/preferences_dialog.c |    8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)
---
diff --git a/src/preferences_dialog.c b/src/preferences_dialog.c
index 467f5af..c5f96a9 100644
--- a/src/preferences_dialog.c
+++ b/src/preferences_dialog.c
@@ -491,16 +491,16 @@ create_preferences_dialog (EtPreferencesDialog *self)
 
     /* Charset */
     /* Unicode. */
-    g_settings_bind (MainSettings, "id3v2-enable-unicode",
-                     priv->id3_v2_unicode_radio, "active",
-                     G_SETTINGS_BIND_DEFAULT);
-
     g_settings_bind_with_mapping (MainSettings, "id3v2-unicode-charset",
                                   priv->id3_v2_unicode_encoding_combo,
                                   "active", G_SETTINGS_BIND_DEFAULT,
                                   et_preferences_id3v2_unicode_charset_get,
                                   et_preferences_id3v2_unicode_charset_set,
                                   NULL, NULL);
+
+    g_settings_bind (MainSettings, "id3v2-enable-unicode",
+                     priv->id3_v2_other_radio, "active",
+                     G_SETTINGS_BIND_DEFAULT | G_SETTINGS_BIND_INVERT_BOOLEAN);
     g_signal_connect (priv->id3_v2_unicode_radio,
                       "notify::active",
                       G_CALLBACK (notify_id3_settings_active), self);


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