[gnome-software/gnome-3-24] trivial: Correctly clear custom widget CSS if the metadata key is cleared
- From: Richard Hughes <rhughes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-software/gnome-3-24] trivial: Correctly clear custom widget CSS if the metadata key is cleared
- Date: Mon, 8 May 2017 12:31:15 +0000 (UTC)
commit a8f07381a0db9bc338ebcfe0ca005feb5a6065ab
Author: Richard Hughes <richard hughsie com>
Date: Thu May 4 16:03:36 2017 +0100
trivial: Correctly clear custom widget CSS if the metadata key is cleared
src/gs-common.c | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
---
diff --git a/src/gs-common.c b/src/gs-common.c
index c0b59f8..1ec2afd 100644
--- a/src/gs-common.c
+++ b/src/gs-common.c
@@ -401,8 +401,10 @@ gs_utils_widget_set_css_app (GsApp *app,
/* invalid */
css = gs_app_get_metadata_item (app, metadata_css);
- if (css == NULL)
+ if (css == NULL) {
+ gs_utils_widget_set_css_simple (widget, css);
return;
+ }
/* replace any key colors */
css_str = g_string_new (css);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]