[gnome-software] shell extensions: Get the version for installed extensions
- From: Kalev Lember <klember src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] shell extensions: Get the version for installed extensions
- Date: Thu, 29 Nov 2018 14:14:42 +0000 (UTC)
commit 1913f86ec7240cb61ec8da26f490f45eb56eb4d2
Author: Kalev Lember <klember redhat com>
Date: Thu Nov 29 15:08:21 2018 +0100
shell extensions: Get the version for installed extensions
plugins/shell-extensions/gs-plugin-shell-extensions.c | 6 ++++++
1 file changed, 6 insertions(+)
---
diff --git a/plugins/shell-extensions/gs-plugin-shell-extensions.c
b/plugins/shell-extensions/gs-plugin-shell-extensions.c
index 36de3b06..3d64eb51 100644
--- a/plugins/shell-extensions/gs-plugin-shell-extensions.c
+++ b/plugins/shell-extensions/gs-plugin-shell-extensions.c
@@ -173,6 +173,12 @@ gs_plugin_shell_extensions_parse_installed (GsPlugin *plugin,
g_variant_get_string (val, NULL));
continue;
}
+ if (g_strcmp0 (str, "version") == 0) {
+ guint val_int = (guint) g_variant_get_double (val);
+ g_autofree gchar *version = g_strdup_printf ("%u", val_int);
+ gs_app_set_version (app, version);
+ continue;
+ }
if (g_strcmp0 (str, "url") == 0) {
gs_app_set_url (app, AS_URL_KIND_HOMEPAGE,
g_variant_get_string (val, NULL));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]