[gnome-todo/wip/gbsneto/plugins] providers: propertly emit signals
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo/wip/gbsneto/plugins] providers: propertly emit signals
- Date: Tue, 29 Dec 2015 22:04:32 +0000 (UTC)
commit e1f04ce1a92b8bb4cd1678da19fbf8dad72dc67d
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Tue Dec 29 20:03:52 2015 -0200
providers: propertly emit signals
plugins/eds/gtd-provider-goa.c | 4 ++++
plugins/eds/gtd-provider-local.c | 6 ++++++
2 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/plugins/eds/gtd-provider-goa.c b/plugins/eds/gtd-provider-goa.c
index 94b21ef..d26f3fb 100644
--- a/plugins/eds/gtd-provider-goa.c
+++ b/plugins/eds/gtd-provider-goa.c
@@ -132,6 +132,8 @@ gtd_provider_goa_create_task_list (GtdProvider *provider,
GtdTaskList *list)
{
gtd_provider_eds_create_task_list (GTD_PROVIDER_EDS (provider), list);
+
+ g_signal_emit_by_name (provider, "list-added", list);
}
static void
@@ -139,6 +141,8 @@ gtd_provider_goa_update_task_list (GtdProvider *provider,
GtdTaskList *list)
{
gtd_provider_eds_update_task_list (GTD_PROVIDER_EDS (provider), list);
+
+ g_signal_emit_by_name (provider, "list-changed", list);
}
static void
diff --git a/plugins/eds/gtd-provider-local.c b/plugins/eds/gtd-provider-local.c
index 1f43480..ead45ea 100644
--- a/plugins/eds/gtd-provider-local.c
+++ b/plugins/eds/gtd-provider-local.c
@@ -114,6 +114,8 @@ gtd_provider_local_create_task_list (GtdProvider *provider,
GtdTaskList *list)
{
gtd_provider_eds_create_task_list (GTD_PROVIDER_EDS (provider), list);
+
+ g_signal_emit_by_name (provider, "list-added", list);
}
static void
@@ -121,6 +123,10 @@ gtd_provider_local_update_task_list (GtdProvider *provider,
GtdTaskList *list)
{
gtd_provider_eds_update_task_list (GTD_PROVIDER_EDS (provider), list);
+
+ g_message ("%s: updating task list", G_STRFUNC);
+
+ g_signal_emit_by_name (provider, "list-changed", list);
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]