aboutsummaryrefslogtreecommitdiffstats
path: root/my-evolution/e-summary-weather.c
diff options
context:
space:
mode:
authorIain Holmes <iain@src.gnome.org>2002-06-27 00:07:40 +0800
committerIain Holmes <iain@src.gnome.org>2002-06-27 00:07:40 +0800
commit6bb5b8850a6202012fe8f7b1ea0295aeab4112ba (patch)
tree287fe93359b371d5775d3e3120cc4087e3ac7d12 /my-evolution/e-summary-weather.c
parent9a210db24ffc2e0d806c5afda8cf3b471aa4d5c3 (diff)
downloadgsoc2013-evolution-6bb5b8850a6202012fe8f7b1ea0295aeab4112ba.tar
gsoc2013-evolution-6bb5b8850a6202012fe8f7b1ea0295aeab4112ba.tar.gz
gsoc2013-evolution-6bb5b8850a6202012fe8f7b1ea0295aeab4112ba.tar.bz2
gsoc2013-evolution-6bb5b8850a6202012fe8f7b1ea0295aeab4112ba.tar.lz
gsoc2013-evolution-6bb5b8850a6202012fe8f7b1ea0295aeab4112ba.tar.xz
gsoc2013-evolution-6bb5b8850a6202012fe8f7b1ea0295aeab4112ba.tar.zst
gsoc2013-evolution-6bb5b8850a6202012fe8f7b1ea0295aeab4112ba.zip
Sort the states in the right order
svn path=/trunk/; revision=17291
Diffstat (limited to 'my-evolution/e-summary-weather.c')
-rw-r--r--my-evolution/e-summary-weather.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/my-evolution/e-summary-weather.c b/my-evolution/e-summary-weather.c
index c5396e7225..2be84faec6 100644
--- a/my-evolution/e-summary-weather.c
+++ b/my-evolution/e-summary-weather.c
@@ -701,7 +701,7 @@ e_summary_weather_fill_etable (ESummaryShown *ess)
gnome_config_get_vector (states_key, &nstates, &states);
state = NULL;
- for (istates = nstates - 1; istates >= 0; istates--) {
+ for (istates = 0; istates < nstates; istates++) {
void *iter;
char *iter_key, *iter_val;
char *state_path, *state_name_key, *state_name;
@@ -721,10 +721,10 @@ e_summary_weather_fill_etable (ESummaryShown *ess)
iter = gnome_config_init_iterator (state_path);
while ((iter = gnome_config_iterator_next (iter, &iter_key, &iter_val)) != NULL) {
- if (strstr (iter_key, "loc") != NULL) {
+ if (strncmp (iter_key, "loc", 3) == 0) {
char **locdata;
int nlocdata;
-
+
gnome_config_make_vector (iter_val,
&nlocdata,
&locdata);
@@ -736,7 +736,6 @@ e_summary_weather_fill_etable (ESummaryShown *ess)
entry->showable = TRUE;
location = e_summary_shown_add_node (ess, TRUE, entry, state, TRUE, NULL);
- /* FIXME: Show the showns here */
if (is_weather_shown (locdata[1]) == TRUE) {
entry = g_new (ESummaryShownModelEntry, 1);
entry->location = g_strdup (locdata[1]);