[gnome-todo] provider: set random uuid by default
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo] provider: set random uuid by default
- Date: Thu, 28 Sep 2017 03:58:09 +0000 (UTC)
commit bfb69e3f7c61ee0977498cba128430e2b93873ba
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Sep 28 00:57:11 2017 -0300
provider: set random uuid by default
src/interfaces/gtd-provider.c | 10 +++++++++-
1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/src/interfaces/gtd-provider.c b/src/interfaces/gtd-provider.c
index d404521..10180f4 100644
--- a/src/interfaces/gtd-provider.c
+++ b/src/interfaces/gtd-provider.c
@@ -54,7 +54,15 @@ static guint signals[NUM_SIGNALS] = { 0, };
static GtdTask*
gtd_provider_default_generate_task (GtdProvider *self)
{
- return gtd_task_new ();
+ g_autofree gchar *uuid;
+ GtdTask *task;
+
+ uuid = g_uuid_string_random ();
+
+ task = gtd_task_new ();
+ gtd_object_set_uid (GTD_OBJECT (task), uuid);
+
+ return task;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]