aboutsummaryrefslogtreecommitdiff
path: root/src
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 /src
parent77b2b6f4e8dd7f782c89f30ed3f74b6fe51cf871 (diff)
parent208fc0000cc6101d1ebd8ed774f05ec371b1bcaa (diff)
downloadlibayatana-appindicator-05be20a747d73aec5aa4914e150b1f50bc83e08d.tar.gz
libayatana-appindicator-05be20a747d73aec5aa4914e150b1f50bc83e08d.tar.bz2
libayatana-appindicator-05be20a747d73aec5aa4914e150b1f50bc83e08d.zip
Fixing the signal prototype
Diffstat (limited to 'src')
-rw-r--r--src/application-service-appstore.c11
1 files changed, 9 insertions, 2 deletions
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;