aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-08-04 20:30:43 -0500
committerTed Gould <ted@gould.cx>2010-08-04 20:30:43 -0500
commit05be20a747d73aec5aa4914e150b1f50bc83e08d (patch)
treec157f7862a32109b6b2499564e28557f80f80b00
parent77b2b6f4e8dd7f782c89f30ed3f74b6fe51cf871 (diff)
parent208fc0000cc6101d1ebd8ed774f05ec371b1bcaa (diff)
downloadlibayatana-appindicator-05be20a747d73aec5aa4914e150b1f50bc83e08d.tar.gz
libayatana-appindicator-05be20a747d73aec5aa4914e150b1f50bc83e08d.tar.bz2
libayatana-appindicator-05be20a747d73aec5aa4914e150b1f50bc83e08d.zip
Fixing the signal prototype
-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;