aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog6
-rw-r--r--src/app-menu-item.c12
2 files changed, 9 insertions, 9 deletions
diff --git a/debian/changelog b/debian/changelog
index f5887de..f53d168 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,3 +1,9 @@
+indicator-messages (0.2.0-0ubuntu3~ppa2~newapi2) UNRELEASED; urgency=low
+
+ * Fix for the changes in libindicate (fixes)
+
+ -- Ted Gould <ted@ubuntu.com> Sat, 05 Sep 2009 11:43:49 -0500
+
indicator-messages (0.2.0-0ubuntu3~ppa2~newapi1) karmic; urgency=low
* Merging in changes for the new libindicate API
diff --git a/src/app-menu-item.c b/src/app-menu-item.c
index ba71ef5..aa0b60c 100644
--- a/src/app-menu-item.c
+++ b/src/app-menu-item.c
@@ -24,7 +24,6 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#include "config.h"
#endif
-#include <stdlib.h>
#include <glib/gi18n.h>
#include <gio/gdesktopappinfo.h>
#include "app-menu-item.h"
@@ -60,7 +59,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 +217,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;
}