summaryrefslogtreecommitdiff
path: root/mate-volume-control
diff options
context:
space:
mode:
authorMonsta <[email protected]>2015-03-19 13:59:08 +0300
committerStefano Karapetsas <[email protected]>2015-03-23 10:20:43 +0100
commit1b64bb6c8eeef0cb9cbeeff065290d2759e44987 (patch)
tree997f0dad3729294968ed2ce48ad63a098398fd11 /mate-volume-control
parentff3d6b93420c97a7a85b0b07dc431d23a8c74a7d (diff)
downloadmate-media-1b64bb6c8eeef0cb9cbeeff065290d2759e44987.tar.bz2
mate-media-1b64bb6c8eeef0cb9cbeeff065290d2759e44987.tar.xz
first connect to settings, then read them.
fixes the issue with GLib >= 2.43, https://git.gnome.org/browse/glib/commit/?id=8ff5668a458344da22d30491e3ce726d861b3619 Closes https://github.com/mate-desktop/mate-media/pull/57
Diffstat (limited to 'mate-volume-control')
-rw-r--r--mate-volume-control/gvc-sound-theme-chooser.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/mate-volume-control/gvc-sound-theme-chooser.c b/mate-volume-control/gvc-sound-theme-chooser.c
index 9edc630..55c4ee2 100644
--- a/mate-volume-control/gvc-sound-theme-chooser.c
+++ b/mate-volume-control/gvc-sound-theme-chooser.c
@@ -1069,6 +1069,11 @@ gvc_sound_theme_chooser_init (GvcSoundThemeChooser *chooser)
chooser->priv->sound_settings = g_settings_new (KEY_SOUNDS_SCHEMA);
+ g_signal_connect (G_OBJECT (chooser->priv->sound_settings),
+ "changed",
+ G_CALLBACK (on_key_changed),
+ chooser);
+
str = g_strdup_printf ("<b>%s</b>", _("C_hoose an alert sound:"));
chooser->priv->selection_box = box = gtk_frame_new (str);
g_free (str);
@@ -1113,10 +1118,6 @@ gvc_sound_theme_chooser_init (GvcSoundThemeChooser *chooser)
"toggled",
G_CALLBACK (on_click_feedback_toggled),
chooser);
- g_signal_connect (G_OBJECT (chooser->priv->sound_settings),
- "changed",
- G_CALLBACK (on_key_changed),
- chooser);
setup_theme_selector (chooser);
update_theme (chooser);