[gnome-software] Show an in-app notification for an invalid file format
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Show an in-app notification for an invalid file format
- Date: Wed, 21 Sep 2016 18:56:09 +0000 (UTC)
commit d66e040d779af945ee59d4dcad497e1cac65e361
Author: Richard Hughes <richard hughsie com>
Date: Wed Sep 21 19:54:43 2016 +0100
Show an in-app notification for an invalid file format
Fixes half of https://bugzilla.gnome.org/show_bug.cgi?id=771767
src/gs-shell.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gs-shell.c b/src/gs-shell.c
index f2b380b..ad83869 100644
--- a/src/gs-shell.c
+++ b/src/gs-shell.c
@@ -883,6 +883,10 @@ gs_shell_show_event_install (GsShell *shell, GsPluginEvent *event)
"required but wasn’t available"));
buttons |= GS_SHELL_EVENT_BUTTON_NETWORK_SETTINGS;
break;
+ case GS_PLUGIN_ERROR_INVALID_FORMAT:
+ /* TRANSLATORS: failure text for the in-app notification */
+ g_string_append (str, _("Unable to install: the application has an invalid format"));
+ break;
case GS_PLUGIN_ERROR_NO_SPACE:
/* TRANSLATORS: failure text for the in-app notification */
g_string_append_printf (str, _("Unable to install %s: "
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]