[gnome-software] Prefix the featured metadata with the correct scope
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software] Prefix the featured metadata with the correct scope
- Date: Mon, 9 Sep 2013 20:54:49 +0000 (UTC)
commit d3ab49140f1a7cda014d0baabd29a6262c0d9d8d
Author: Richard Hughes <richard hughsie com>
Date: Mon Sep 9 21:41:51 2013 +0100
Prefix the featured metadata with the correct scope
src/gs-feature-tile.c | 18 +++++++++---------
src/plugins/gs-plugin-hardcoded-featured.c | 14 +++++++-------
2 files changed, 16 insertions(+), 16 deletions(-)
---
diff --git a/src/gs-feature-tile.c b/src/gs-feature-tile.c
index e5ec014..7007e89 100644
--- a/src/gs-feature-tile.c
+++ b/src/gs-feature-tile.c
@@ -73,9 +73,9 @@ gs_feature_tile_set_app (GsFeatureTile *tile, GsApp *app)
gtk_image_set_from_pixbuf (GTK_IMAGE (priv->image),
gs_app_get_featured_pixbuf (priv->app));
gtk_label_set_label (GTK_LABEL (priv->title),
- gs_app_get_metadata_item (app, "featured-title"));
+ gs_app_get_metadata_item (app, "Featured::title"));
gtk_label_set_label (GTK_LABEL (priv->subtitle),
- gs_app_get_metadata_item (app, "featured-subtitle"));
+ gs_app_get_metadata_item (app, "Featured::subtitle"));
data = g_strdup_printf (
".button.featured-tile {\n"
" padding: 0;\n"
@@ -99,13 +99,13 @@ gs_feature_tile_set_app (GsFeatureTile *tile, GsApp *app)
" color-stop(0,alpha(%s,0.80)),\n"
" color-stop(1,alpha(%s,0.80)));\n"
"}\n",
- gs_app_get_metadata_item (app, "featured-stroke-color"),
- gs_app_get_metadata_item (app, "featured-text-color"),
- gs_app_get_metadata_item (app, "featured-text-color"),
- gs_app_get_metadata_item (app, "featured-gradient1-color"),
- gs_app_get_metadata_item (app, "featured-gradient2-color"),
- gs_app_get_metadata_item (app, "featured-gradient1-color"),
- gs_app_get_metadata_item (app, "featured-gradient2-color"));
+ gs_app_get_metadata_item (app, "Featured::stroke-color"),
+ gs_app_get_metadata_item (app, "Featured::text-color"),
+ gs_app_get_metadata_item (app, "Featured::text-color"),
+ gs_app_get_metadata_item (app, "Featured::gradient1-color"),
+ gs_app_get_metadata_item (app, "Featured::gradient2-color"),
+ gs_app_get_metadata_item (app, "Featured::gradient1-color"),
+ gs_app_get_metadata_item (app, "Featured::gradient2-color"));
gtk_css_provider_load_from_data (priv->provider, data, -1, NULL);
g_free (data);
diff --git a/src/plugins/gs-plugin-hardcoded-featured.c b/src/plugins/gs-plugin-hardcoded-featured.c
index 6980fbd..25633fd 100644
--- a/src/plugins/gs-plugin-hardcoded-featured.c
+++ b/src/plugins/gs-plugin-hardcoded-featured.c
@@ -102,35 +102,35 @@ gs_plugin_add_featured (GsPlugin *plugin,
app = gs_app_new (apps[i]);
gs_app_set_featured_pixbuf (app, pixbuf);
- gs_app_set_metadata (app, "featured-image-path", path);
+ gs_app_set_metadata (app, "Featured::image-path", path);
s = g_key_file_get_locale_string (kf, group, "title", NULL, NULL);
if (s) {
- gs_app_set_metadata (app, "featured-title", s);
+ gs_app_set_metadata (app, "Featured::title", s);
g_free (s);
}
s = g_key_file_get_locale_string (kf, group, "subtitle", NULL, NULL);
if (s) {
- gs_app_set_metadata (app, "featured-subtitle", s);
+ gs_app_set_metadata (app, "Featured::subtitle", s);
g_free (s);
}
s = g_key_file_get_string (kf, group, "gradient1", NULL);
if (s) {
- gs_app_set_metadata (app, "featured-gradient1-color", s);
+ gs_app_set_metadata (app, "Featured::gradient1-color", s);
g_free (s);
}
s = g_key_file_get_string (kf, group, "gradient2", NULL);
if (s) {
- gs_app_set_metadata (app, "featured-gradient2-color", s);
+ gs_app_set_metadata (app, "Featured::gradient2-color", s);
g_free (s);
}
s = g_key_file_get_string (kf, group, "stroke", NULL);
if (s) {
- gs_app_set_metadata (app, "featured-stroke-color", s);
+ gs_app_set_metadata (app, "Featured::stroke-color", s);
g_free (s);
}
s = g_key_file_get_string (kf, group, "text", NULL);
if (s) {
- gs_app_set_metadata (app, "featured-text-color", s);
+ gs_app_set_metadata (app, "Featured::text-color", s);
g_free (s);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]