diff options
author | Monsta <[email protected]> | 2015-02-19 17:36:25 +0300 |
---|---|---|
committer | Monsta <[email protected]> | 2015-02-19 17:36:25 +0300 |
commit | 0376255e93e11d06e368d468de7c1c804e4b4c9c (patch) | |
tree | c7dabf2ab7ca044f4acc8b28bf323f01550e5a71 /capplet | |
parent | 1ebfda491775364cd3476989f12f8de120f695cf (diff) | |
download | mate-session-manager-0376255e93e11d06e368d468de7c1c804e4b4c9c.tar.bz2 mate-session-manager-0376255e93e11d06e368d468de7c1c804e4b4c9c.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
Diffstat (limited to 'capplet')
-rw-r--r-- | capplet/gsm-properties-dialog.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/capplet/gsm-properties-dialog.c b/capplet/gsm-properties-dialog.c index c920882..694690a 100644 --- a/capplet/gsm-properties-dialog.c +++ b/capplet/gsm-properties-dialog.c @@ -671,13 +671,14 @@ setup_dialog (GsmPropertiesDialog *dialog) button = GTK_WIDGET (gtk_builder_get_object (dialog->priv->xml, CAPPLET_REMEMBER_WIDGET_NAME)); dialog->priv->remember_toggle = button; - gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), - g_settings_get_boolean (dialog->priv->settings, SPC_AUTOSAVE_KEY)); + g_signal_connect (dialog->priv->settings, "changed::" SPC_AUTOSAVE_KEY, G_CALLBACK (on_autosave_value_notify), dialog); + gtk_toggle_button_set_active (GTK_TOGGLE_BUTTON (button), + g_settings_get_boolean (dialog->priv->settings, SPC_AUTOSAVE_KEY)); g_signal_connect (button, "toggled", G_CALLBACK (on_autosave_value_toggled), |