From 29ae116e82c75e40a57b89b0c6455de45092c645 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Sat, 5 Sep 2009 11:43:13 -0500 Subject: Fixing as I fixed the libindicate API, we shouldn't have to do an atoi here. --- src/app-menu-item.c | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'src/app-menu-item.c') 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; } -- cgit v1.2.3