aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@canonical.com>2009-09-05 11:43:13 -0500
committerTed Gould <ted@canonical.com>2009-09-05 11:43:13 -0500
commit29ae116e82c75e40a57b89b0c6455de45092c645 (patch)
tree0bc0a3e3810aa218a642270680f071c5d8028929
parenta081622756ff3cecfa42d6f623ae69c5806c5bcd (diff)
downloadayatana-indicator-messages-29ae116e82c75e40a57b89b0c6455de45092c645.tar.gz
ayatana-indicator-messages-29ae116e82c75e40a57b89b0c6455de45092c645.tar.bz2
ayatana-indicator-messages-29ae116e82c75e40a57b89b0c6455de45092c645.zip
Fixing as I fixed the libindicate API, we shouldn't have to do an atoi here.
-rw-r--r--src/app-menu-item.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/app-menu-item.c b/src/app-menu-item.c
index ba71ef5..fc96ed6 100644
--- a/src/app-menu-item.c
+++ b/src/app-menu-item.c
@@ -60,7 +60,7 @@ static void app_menu_item_dispose (GObject *object);
static void app_menu_item_finalize (GObject *object);
static void activate_cb (AppMenuItem * self, gpointer data);
static void count_changed (IndicateListener * listener, IndicateListenerServer * server, guint count, gpointer data);
-static void count_cb (IndicateListener * listener, IndicateListenerServer * server, gchar * value, gpointer data);
+static void count_cb (IndicateListener * listener, IndicateListenerServer * server, guint value, gpointer data);
static void desktop_cb (IndicateListener * listener, IndicateListenerServer * server, gchar * value, gpointer data);
static void update_label (AppMenuItem * self);
@@ -218,14 +218,9 @@ count_changed (IndicateListener * listener, IndicateListenerServer * server, gui
/* Callback for getting the count property off
of the server. */
static void
-count_cb (IndicateListener * listener, IndicateListenerServer * server, gchar * value, gpointer data)
+count_cb (IndicateListener * listener, IndicateListenerServer * server, guint value, gpointer data)
{
- g_return_if_fail(value != NULL);
- g_return_if_fail(value[0] != '\0');
-
- int count = atoi(value);
- count_changed(listener, server, count, data);
-
+ count_changed(listener, server, value, data);
return;
}