aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-08-05 01:26:41 +0100
committerTed Gould <ted@canonical.com>2009-08-05 01:26:41 +0100
commitcc920f1c6290bb3b27f14bbdd2a1abba70fcaa40 (patch)
tree4a428df83327c71e5900c76562fe5029e1d37e4e
parent42ba02f7916c1f77f7fb33c4c8cd7c64729312e5 (diff)
parenta3e59c2205cb3aee151df1e3cb1947fb8699a1e4 (diff)
downloadlibayatana-indicator-cc920f1c6290bb3b27f14bbdd2a1abba70fcaa40.tar.gz
libayatana-indicator-cc920f1c6290bb3b27f14bbdd2a1abba70fcaa40.tar.bz2
libayatana-indicator-cc920f1c6290bb3b27f14bbdd2a1abba70fcaa40.zip
Upstream fix for server.c and get indicators with hidden
indicators in the list.
-rw-r--r--debian/changelog7
-rw-r--r--libindicate/server.c4
2 files changed, 9 insertions, 2 deletions
diff --git a/debian/changelog b/debian/changelog
index d49dfa2..977132b 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,10 @@
+indicator-applet (0.2.0~bzr319-0ubuntu1~ppa5) UNRELEASED; urgency=low
+
+ * Upstream fix for server.c and get indicators with hidden
+ indicators in the list.
+
+ -- Ted Gould <ted@ubuntu.com> Wed, 05 Aug 2009 01:26:11 +0100
+
indicator-applet (0.2.0~bzr319-0ubuntu1~ppa4) karmic; urgency=low
* Upstream fix to PC file.
diff --git a/libindicate/server.c b/libindicate/server.c
index a3d3be8..e1e3479 100644
--- a/libindicate/server.c
+++ b/libindicate/server.c
@@ -945,11 +945,11 @@ get_indicator_list (IndicateServer * server, GArray ** indicators, GError ** err
GSList * iter;
int i;
- for (iter = priv->indicators, i = 0; iter != NULL; iter = iter->next, i++) {
+ for (iter = priv->indicators, i = 0; iter != NULL; iter = iter->next) {
IndicateIndicator * indicator = INDICATE_INDICATOR(iter->data);
if (indicate_indicator_is_visible(indicator)) {
guint id = indicate_indicator_get_id(indicator);
- g_array_insert_val(*indicators, i, id);
+ g_array_insert_val(*indicators, i++, id);
}
}