diff options
Diffstat (limited to 'modules/settings/e-settings-weekday-chooser.c')
-rw-r--r-- | modules/settings/e-settings-weekday-chooser.c | 15 |
1 files changed, 7 insertions, 8 deletions
diff --git a/modules/settings/e-settings-weekday-chooser.c b/modules/settings/e-settings-weekday-chooser.c index e4b92d73c5..594a459228 100644 --- a/modules/settings/e-settings-weekday-chooser.c +++ b/modules/settings/e-settings-weekday-chooser.c @@ -18,7 +18,6 @@ #include "e-settings-weekday-chooser.h" -#include <shell/e-shell.h> #include <calendar/gui/e-weekday-chooser.h> #define E_SETTINGS_WEEKDAY_CHOOSER_GET_PRIVATE(obj) \ @@ -39,19 +38,19 @@ settings_weekday_chooser_constructed (GObject *object) { EExtension *extension; EExtensible *extensible; - EShellSettings *shell_settings; - EShell *shell; + GSettings *settings; extension = E_EXTENSION (object); extensible = e_extension_get_extensible (extension); - shell = e_shell_get_default (); - shell_settings = e_shell_get_shell_settings (shell); + settings = g_settings_new ("org.gnome.evolution.calendar"); - g_object_bind_property ( - shell_settings, "cal-week-start-day", + g_settings_bind ( + settings, "week-start-day-name", extensible, "week-start-day", - G_BINDING_SYNC_CREATE); + G_SETTINGS_BIND_GET); + + g_object_unref (settings); /* Chain up to parent's constructed() method. */ G_OBJECT_CLASS (e_settings_weekday_chooser_parent_class)-> |