[gnome-todo/wip/selection-mode] task-list: check if source is remote-deletable
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo/wip/selection-mode] task-list: check if source is remote-deletable
- Date: Sun, 23 Aug 2015 00:35:16 +0000 (UTC)
commit b15135758d881bc0af93bd458d05e8da8c9736da
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sat Aug 22 19:45:32 2015 -0300
task-list: check if source is remote-deletable
We can remove the task list both locally and remotely. In that
case, ::is_removable should notify that.
src/gtd-task-list.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/gtd-task-list.c b/src/gtd-task-list.c
index fdfd3f6..d269e10 100644
--- a/src/gtd-task-list.c
+++ b/src/gtd-task-list.c
@@ -86,7 +86,7 @@ gtd_task_list_get_property (GObject *object,
break;
case PROP_IS_REMOVABLE:
- g_value_set_boolean (value, e_source_get_removable (self->priv->source));
+ g_value_set_boolean (value, gtd_task_list_is_removable (self));
break;
case PROP_NAME:
@@ -531,5 +531,5 @@ gtd_task_list_is_removable (GtdTaskList *list)
{
g_return_val_if_fail (GTD_IS_TASK_LIST (list), FALSE);
- return e_source_get_removable (list->priv->source);
+ return e_source_get_removable (list->priv->source) || e_source_get_remote_deletable (list->priv->source);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]