[gnome-todo] background: fix notification body
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-todo] background: fix notification body
- Date: Sun, 23 Apr 2017 17:16:20 +0000 (UTC)
commit 0ea3ad98207032c58fb513a74518b2ff33e2688e
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Sat Apr 22 17:33:44 2017 -0300
background: fix notification body
plugins/background/gtd-plugin-background.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/plugins/background/gtd-plugin-background.c b/plugins/background/gtd-plugin-background.c
index 8e0677e..1c2c40c 100644
--- a/plugins/background/gtd-plugin-background.c
+++ b/plugins/background/gtd-plugin-background.c
@@ -125,6 +125,7 @@ format_notification_body (GList *tasks,
if (length > MAX_BODY_LENGTH)
break;
+ /* Prepend comma */
if (current_task > 0)
g_string_append (aux, ", ");
@@ -152,7 +153,8 @@ format_notification_body (GList *tasks,
}
else
{
- /* Nothing to do, we were able to print all titles */
+ /* We were able to print all task titles */
+ g_string_append (string, aux->str);
}
g_string_free (aux, TRUE);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]