aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--debian/changelog3
-rw-r--r--src/application-service-appstore.c11
2 files changed, 11 insertions, 3 deletions
diff --git a/debian/changelog b/debian/changelog
index 3457d61..45036b3 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -2,8 +2,9 @@ indicator-application (0.2.3-0ubuntu2~ppa1~label3) UNRELEASED; urgency=low
* Upstream Merge
* Making the test program count to 100
+ * Fixing the signal prototype
- -- Ted Gould <ted@ubuntu.com> Wed, 04 Aug 2010 20:29:47 -0500
+ -- Ted Gould <ted@ubuntu.com> Wed, 04 Aug 2010 20:30:28 -0500
indicator-application (0.2.3-0ubuntu2~ppa1~label2) lucid; urgency=low
diff --git a/src/application-service-appstore.c b/src/application-service-appstore.c
index 8d9206f..7f77a78 100644
--- a/src/application-service-appstore.c
+++ b/src/application-service-appstore.c
@@ -150,7 +150,7 @@ application_service_appstore_class_init (ApplicationServiceAppstoreClass *klass)
G_STRUCT_OFFSET (ApplicationServiceAppstoreClass, application_label_changed),
NULL, NULL,
_application_service_marshal_VOID__INT_STRING_STRING,
- G_TYPE_NONE, 2, G_TYPE_INT, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_NONE);
+ G_TYPE_NONE, 3, G_TYPE_INT, G_TYPE_STRING, G_TYPE_STRING, G_TYPE_NONE);
dbus_g_object_register_marshaller(_application_service_marshal_VOID__STRING_STRING,
G_TYPE_NONE,
@@ -656,7 +656,14 @@ new_label (DBusGProxy * proxy, const gchar * label, const gchar * guide, gpointe
}
if (changed) {
- g_signal_emit(app->appstore, signals[APPLICATION_LABEL_CHANGED], 0, app->label, app->guide, TRUE);
+ gint position = get_position(app);
+ if (position == -1) return;
+
+ g_signal_emit(app->appstore, signals[APPLICATION_LABEL_CHANGED], 0,
+ position,
+ app->label != NULL ? app->label : "",
+ app->guide != NULL ? app->guide : "",
+ TRUE);
}
return;