[gnome-shell] st-theme-node: Fix lookup of time values



commit e6e786a19c2e1b8183be20358c5b1bd34ff7dc82
Author: Florian Müllner <fmuellner gnome org>
Date:   Fri Feb 3 15:57:38 2017 +0100

    st-theme-node: Fix lookup of time values
    
    We have a time when the content type is seconds *or* milliseconds,
    not seconds *and* milliseconds. Whoops ...
    
    https://bugzilla.gnome.org/show_bug.cgi?id=778145

 src/st/st-theme-node.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/st/st-theme-node.c b/src/st/st-theme-node.c
index 5582c75..6608efb 100644
--- a/src/st/st-theme-node.c
+++ b/src/st/st-theme-node.c
@@ -857,7 +857,7 @@ st_theme_node_lookup_time (StThemeNode *node,
           if (term->type != TERM_NUMBER)
             continue;
 
-          if (term->content.num->type != NUM_TIME_S ||
+          if (term->content.num->type != NUM_TIME_S &&
               term->content.num->type != NUM_TIME_MS)
             continue;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]