diff options
author | Ted Gould <ted@gould.cx> | 2010-08-04 20:18:39 -0500 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2010-08-04 20:18:39 -0500 |
commit | 208fc0000cc6101d1ebd8ed774f05ec371b1bcaa (patch) | |
tree | 6fc04d00e5f5e9a53db574c45da83a8b68282d73 /src | |
parent | b83a74cd18522241f70efc98a285a363c55b91f7 (diff) | |
download | ayatana-indicator-application-208fc0000cc6101d1ebd8ed774f05ec371b1bcaa.tar.gz ayatana-indicator-application-208fc0000cc6101d1ebd8ed774f05ec371b1bcaa.tar.bz2 ayatana-indicator-application-208fc0000cc6101d1ebd8ed774f05ec371b1bcaa.zip |
Fixing the prototype for the label changed signal.
Diffstat (limited to 'src')
-rw-r--r-- | src/application-service-appstore.c | 11 |
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; |