aboutsummaryrefslogtreecommitdiff
path: root/libindicate
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-08-05 01:25:55 +0100
committerTed Gould <ted@canonical.com>2009-08-05 01:25:55 +0100
commita3e59c2205cb3aee151df1e3cb1947fb8699a1e4 (patch)
treed624db24c1925c8808253d8f1e2a3dbccae4699b /libindicate
parente4ac1dcf9a7372aa506d0acc773ae6b772ce976c (diff)
downloadlibayatana-indicator-a3e59c2205cb3aee151df1e3cb1947fb8699a1e4.tar.gz
libayatana-indicator-a3e59c2205cb3aee151df1e3cb1947fb8699a1e4.tar.bz2
libayatana-indicator-a3e59c2205cb3aee151df1e3cb1947fb8699a1e4.zip
Maintaining the count independent of the entires.
Diffstat (limited to 'libindicate')
-rw-r--r--libindicate/server.c4
1 files changed, 2 insertions, 2 deletions
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);
}
}