[gnome-software/wip/iainl/ubuntu-xenial: 47/56] Set origin for Snappy packages
- From: William Hua <williamhua src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/wip/iainl/ubuntu-xenial: 47/56] Set origin for Snappy packages
- Date: Thu, 14 Apr 2016 06:33:46 +0000 (UTC)
commit d3f543c46e559b5873f9838729465004ce3845a2
Author: Robert Ancell <robert ancell canonical com>
Date: Tue Mar 29 11:15:54 2016 +1300
Set origin for Snappy packages
po/POTFILES.in | 1 +
src/plugins/gs-plugin-snappy.c | 2 ++
2 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index b32efd6..5e87546 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -62,5 +62,6 @@ src/plugins/gs-plugin-epiphany.c
src/plugins/gs-plugin-moduleset.c
src/plugins/gs-plugin-packagekit.c
src/plugins/gs-plugin-packagekit-refine.c
+src/plugins/gs-plugin-snappy.c
src/plugins/menu-spec-common.c
[type: gettext/glade]src/popular-tile.ui
diff --git a/src/plugins/gs-plugin-snappy.c b/src/plugins/gs-plugin-snappy.c
index f3c547c..a7a7433 100644
--- a/src/plugins/gs-plugin-snappy.c
+++ b/src/plugins/gs-plugin-snappy.c
@@ -20,6 +20,7 @@
*/
#include <config.h>
+#include <glib/gi18n.h>
#include <stdlib.h>
#include <string.h>
@@ -324,6 +325,7 @@ get_apps (GsPlugin *plugin, const gchar *sources, gchar **search_terms, GList **
app = gs_app_new (id);
gs_app_set_management_plugin (app, "snappy");
+ gs_app_set_origin (app, _("Ubuntu Snappy Store"));
gs_app_set_kind (app, AS_APP_KIND_DESKTOP);
status = json_object_get_string_member (package, "status");
if (g_strcmp0 (status, "installed") == 0 || g_strcmp0 (status, "active") == 0) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]