[Xfce4-commits] <xfce4-weather-plugin:master> Add another check for using the "unknown" icon.
Harald Judt
noreply at xfce.org
Mon Jul 2 12:38:02 CEST 2012
Updating branch refs/heads/master
to d4833eb9c94b03b6164a183bbf9f1aedb289631d (commit)
from 3710b8ff4330ac96386fb9872b225d5c62aa5ceb (commit)
commit d4833eb9c94b03b6164a183bbf9f1aedb289631d
Author: Harald Judt <h.judt at gmx.at>
Date: Tue Jun 26 01:13:42 2012 +0200
Add another check for using the "unknown" icon.
panel-plugin/weather-icon.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/panel-plugin/weather-icon.c b/panel-plugin/weather-icon.c
index da9c5b0..c4e7c27 100644
--- a/panel-plugin/weather-icon.c
+++ b/panel-plugin/weather-icon.c
@@ -39,7 +39,7 @@ get_icon (const gchar *number,
gchar *filename;
gchar *night;
- if (number == NULL || strcmp (number, "-") == 0)
+ if (number == NULL || strlen(number) == 0 || strcmp (number, "-") == 0)
number = "99";
filename = g_strdup_printf ("%s" G_DIR_SEPARATOR_S "%s" G_DIR_SEPARATOR_S "%s.png",
More information about the Xfce4-commits
mailing list