aboutsummaryrefslogtreecommitdiff
path: root/example/simple-client.c
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/simple-client.c
parentf2b808303f336aad4ee2663efb80a096dd61dcbd (diff)
downloadayatana-indicator-application-1f04ea2f899a2922e9c625fd629463c4dd16aff5.tar.gz
ayatana-indicator-application-1f04ea2f899a2922e9c625fd629463c4dd16aff5.tar.bz2
ayatana-indicator-application-1f04ea2f899a2922e9c625fd629463c4dd16aff5.zip
Make sure we get to 100
Diffstat (limited to 'example/simple-client.c')
-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;