From 1e663aa13266cad55e5019c03e768a38955166eb Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Wed, 13 Oct 2010 23:40:16 -0400 Subject: Replace EBinding with GBinding. GObject now does property bindings itself. Requires GLib >= 2.26. --- modules/calendar/e-cal-config-date-edit.c | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) (limited to 'modules/calendar/e-cal-config-date-edit.c') diff --git a/modules/calendar/e-cal-config-date-edit.c b/modules/calendar/e-cal-config-date-edit.c index 667e749dff..594dee7f94 100644 --- a/modules/calendar/e-cal-config-date-edit.c +++ b/modules/calendar/e-cal-config-date-edit.c @@ -19,7 +19,6 @@ #include "e-cal-config-date-edit.h" #include -#include #include #include @@ -37,13 +36,15 @@ cal_config_date_edit_constructed (GObject *object) shell = e_shell_get_default (); shell_settings = e_shell_get_shell_settings (shell); - e_binding_new ( + g_object_bind_property ( shell_settings, "cal-show-week-numbers", - extensible, "show-week-numbers"); + extensible, "show-week-numbers", + G_BINDING_SYNC_CREATE); - e_binding_new ( + g_object_bind_property ( shell_settings, "cal-week-start-day", - extensible, "week-start-day"); + extensible, "week-start-day", + G_BINDING_SYNC_CREATE); } static void -- cgit