diff options
author | Ryan Lortie <desrt@desrt.ca> | 2012-03-02 00:16:38 -0500 |
---|---|---|
committer | Ryan Lortie <desrt@desrt.ca> | 2012-03-02 00:16:38 -0500 |
commit | a140461aa560bb000853903787d7e4643858767e (patch) | |
tree | 4010dd47c361e8ed29c54d2e40988d5a9d75a275 | |
parent | 9ea46ae5092ea8ced1538929e751fd30bda164cf (diff) | |
download | ayatana-indicator-application-a140461aa560bb000853903787d7e4643858767e.tar.gz ayatana-indicator-application-a140461aa560bb000853903787d7e4643858767e.tar.bz2 ayatana-indicator-application-a140461aa560bb000853903787d7e4643858767e.zip |
make proper use of g_variant_builder_init()
GVariantBuilder can only infer the proper type for non-empty arrays. If
an array may be empty, the full definite type must be given to
g_variant_builder_init().
-rw-r--r-- | src/application-service-appstore.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/application-service-appstore.c b/src/application-service-appstore.c index 2f456f4..5d4296d 100644 --- a/src/application-service-appstore.c +++ b/src/application-service-appstore.c @@ -1348,7 +1348,7 @@ get_applications (ApplicationServiceAppstore * appstore) GList * listpntr; gint position = 0; - g_variant_builder_init(&builder, G_VARIANT_TYPE_ARRAY); + g_variant_builder_init(&builder, G_VARIANT_TYPE ("a(sisossssss)")); for (listpntr = priv->applications; listpntr != NULL; listpntr = g_list_next(listpntr)) { Application * app = (Application *)listpntr->data; |