aboutsummaryrefslogtreecommitdiff
path: root/example
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-08-04 20:19:29 -0500
committerTed Gould <ted@gould.cx>2010-08-04 20:19:29 -0500
commit1f04ea2f899a2922e9c625fd629463c4dd16aff5 (patch)
tree87ac2a3a3ede192a4488054f80621c94a523ab11 /example
parentf2b808303f336aad4ee2663efb80a096dd61dcbd (diff)
downloadlibayatana-appindicator-1f04ea2f899a2922e9c625fd629463c4dd16aff5.tar.gz
libayatana-appindicator-1f04ea2f899a2922e9c625fd629463c4dd16aff5.tar.bz2
libayatana-appindicator-1f04ea2f899a2922e9c625fd629463c4dd16aff5.zip
Make sure we get to 100
Diffstat (limited to 'example')
-rw-r--r--example/simple-client.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/example/simple-client.c b/example/simple-client.c
index d756988..20cb281 100644
--- a/example/simple-client.c
+++ b/example/simple-client.c
@@ -103,7 +103,7 @@ static gboolean
percent_change (gpointer user_data)
{
percentage = (percentage + 1) % 100;
- gchar * percentstr = g_strdup_printf("%d%%", percentage);
+ gchar * percentstr = g_strdup_printf("%d%%", percentage + 1);
app_indicator_set_label (APP_INDICATOR(user_data), percentstr, "100%");
g_free(percentstr);
return TRUE;