[gnome-software] Always set a description for each notification
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Always set a description for each notification
- Date: Wed, 14 Dec 2016 13:48:30 +0000 (UTC)
commit c86cf2ec58a0ee8fcbd0b21ae7da75e6946ee4b2
Author: Richard Hughes <richard hughsie com>
Date: Wed Dec 14 13:44:11 2016 +0000
Always set a description for each notification
Fixes: https://bugzilla.gnome.org/show_bug.cgi?id=775894
src/gs-common.c | 8 ++++++++
1 files changed, 8 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-common.c b/src/gs-common.c
index 4bd0948..5644519 100644
--- a/src/gs-common.c
+++ b/src/gs-common.c
@@ -130,18 +130,26 @@ void
gs_app_notify_installed (GsApp *app)
{
g_autofree gchar *summary = NULL;
+ const gchar *body = NULL;
g_autoptr(GNotification) n = NULL;
if (gs_app_get_kind (app) == AS_APP_KIND_OS_UPDATE) {
/* TRANSLATORS: this is the summary of a notification that OS updates
* have been successfully installed */
summary = g_strdup (_("OS updates are now installed"));
+ /* TRANSLATORS: this is the body of a notification that OS updates
+ * have been successfully installed */
+ body = _("Recently installed updates are available to review");
} else {
/* TRANSLATORS: this is the summary of a notification that an application
* has been successfully installed */
summary = g_strdup_printf (_("%s is now installed"), gs_app_get_name (app));
+ /* TRANSLATORS: this is the body of a notification that an application
+ * has been successfully installed */
+ body = _("Application is ready to be used.");
}
n = g_notification_new (summary);
+ g_notification_set_body (n, body);
if (gs_app_get_kind (app) == AS_APP_KIND_DESKTOP) {
/* TRANSLATORS: this is button that opens the newly installed application */
g_notification_add_button_with_target (n, _("Launch"),
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]