From de207f9c63d525be9e0512da10571293ecb3757f Mon Sep 17 00:00:00 2001 From: Georges Basile Stavracas Neto Date: Wed, 30 Dec 2015 15:05:20 -0200 Subject: [PATCH] edit-dialog: move bindings to UI file We don't need to manually bind these properties in the source code if we can make it on the UI files. --- data/ui/edit-dialog.ui | 3 +++ src/gcal-edit-dialog.c | 19 ------------------- 2 files changed, 3 insertions(+), 19 deletions(-) diff --git a/data/ui/edit-dialog.ui b/data/ui/edit-dialog.ui index ddd40321..322ac082 100644 --- a/data/ui/edit-dialog.ui +++ b/data/ui/edit-dialog.ui @@ -15,6 +15,7 @@ True + Cancel @@ -232,6 +233,7 @@ True True + @@ -266,6 +268,7 @@ True True + diff --git a/src/gcal-edit-dialog.c b/src/gcal-edit-dialog.c index 2abc8d32..651e0e6b 100644 --- a/src/gcal-edit-dialog.c +++ b/src/gcal-edit-dialog.c @@ -546,25 +546,6 @@ gcal_edit_dialog_constructed (GObject* object) g_action_map_add_action (G_ACTION_MAP (dialog->action_group), G_ACTION (dialog->action)); - /* bind title & symmary */ - g_object_bind_property (dialog->summary_entry, - "text", - dialog->titlebar, - "title", - G_BINDING_DEFAULT); - - /* bind all-day check button & time entries */ - g_object_bind_property (dialog->all_day_check, - "active", - dialog->start_time_selector, - "sensitive", - G_BINDING_DEFAULT | G_BINDING_INVERT_BOOLEAN); - g_object_bind_property (dialog->all_day_check, - "active", - dialog->end_time_selector, - "sensitive", - G_BINDING_DEFAULT | G_BINDING_INVERT_BOOLEAN); - /* action area, buttons */ g_object_set_data (G_OBJECT (dialog->cancel_button), "response",