[gnome-todo] task-row: Make row insensitive while task is updating
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo] task-row: Make row insensitive while task is updating
- Date: Mon, 5 Mar 2018 01:46:48 +0000 (UTC)
commit c8c3a92a1d84fc704d1d66953eabb9e562bc2377
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sun Mar 4 22:29:28 2018 -0300
task-row: Make row insensitive while task is updating
This makes it impossible to edit the task while it is being
updated.
src/gtd-task-row.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/src/gtd-task-row.c b/src/gtd-task-row.c
index 2bce70e..07fa9de 100644
--- a/src/gtd-task-row.c
+++ b/src/gtd-task-row.c
@@ -228,6 +228,12 @@ gtd_task_row_set_task (GtdTaskRow *row,
g_signal_handlers_block_by_func (row->title_entry, on_task_title_changed_cb, row);
g_signal_handlers_block_by_func (row->done_check, on_complete_check_toggled_cb, row);
+ g_object_bind_property (task,
+ "loading",
+ row,
+ "sensitive",
+ G_BINDING_DEFAULT | G_BINDING_INVERT_BOOLEAN | G_BINDING_SYNC_CREATE);
+
g_object_bind_property (task,
"title",
row->title_entry,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]