diff options
Diffstat (limited to 'calendar/gui/e-memo-table.c')
-rw-r--r-- | calendar/gui/e-memo-table.c | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/calendar/gui/e-memo-table.c b/calendar/gui/e-memo-table.c index f2df4d6697..b634f92e24 100644 --- a/calendar/gui/e-memo-table.c +++ b/calendar/gui/e-memo-table.c @@ -34,7 +34,6 @@ #include <unistd.h> #include <glib/gi18n.h> #include <glib/gstdio.h> -#include <e-util/e-binding.h> #include <misc/e-selectable.h> #include <table/e-cell-checkbox.h> #include <table/e-cell-toggle.h> @@ -355,21 +354,27 @@ memo_table_constructed (GObject *object) cell = e_cell_date_edit_text_new (NULL, GTK_JUSTIFY_LEFT); g_object_set (cell, "bg_color_column", E_CAL_MODEL_FIELD_COLOR, NULL); - e_mutual_binding_new ( + g_object_bind_property ( model, "timezone", - cell, "timezone"); + cell, "timezone", + G_BINDING_BIDIRECTIONAL | + G_BINDING_SYNC_CREATE); - e_mutual_binding_new ( + g_object_bind_property ( model, "use-24-hour-format", - cell, "use-24-hour-format"); + cell, "use-24-hour-format", + G_BINDING_BIDIRECTIONAL | + G_BINDING_SYNC_CREATE); popup_cell = e_cell_date_edit_new (); e_cell_popup_set_child (E_CELL_POPUP (popup_cell), cell); g_object_unref (cell); - e_mutual_binding_new ( + g_object_bind_property ( model, "use-24-hour-format", - popup_cell, "use-24-hour-format"); + popup_cell, "use-24-hour-format", + G_BINDING_BIDIRECTIONAL | + G_BINDING_SYNC_CREATE); e_table_extras_add_cell (extras, "dateedit", popup_cell); memo_table->dates_cell = E_CELL_DATE_EDIT (popup_cell); |