[gnome-shell] st-theme-node: Fix lookup of time values
- From: Florian Müllner <fmuellner src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-shell] st-theme-node: Fix lookup of time values
- Date: Mon, 6 Feb 2017 13:31:49 +0000 (UTC)
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]