[gnome-software] trivial: Correctly clear custom widget CSS if the metadata key is cleared



commit 4e8506e5b656ffe1c625004fda207a31bb727154
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]