aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-01-15 00:48:09 -0600
committerTed Gould <ted@gould.cx>2010-01-15 00:48:09 -0600
commit00cad2ec8d5a143b3970dd63825cbd4b6265092a (patch)
tree67e092866bdad6f302f3ef24c9f319d105a5f8bc /src
parenteddc0d0e435a16acacafe086475ef79cc3f599ae (diff)
downloadlibayatana-appindicator-00cad2ec8d5a143b3970dd63825cbd4b6265092a.tar.gz
libayatana-appindicator-00cad2ec8d5a143b3970dd63825cbd4b6265092a.tar.bz2
libayatana-appindicator-00cad2ec8d5a143b3970dd63825cbd4b6265092a.zip
Better init value and adding error to prototype.
Diffstat (limited to 'src')
-rw-r--r--src/application-service-appstore.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/application-service-appstore.c b/src/application-service-appstore.c
index d70e2f8..95f8dde 100644
--- a/src/application-service-appstore.c
+++ b/src/application-service-appstore.c
@@ -31,7 +31,7 @@ with this program. If not, see <http://www.gnu.org/licenses/>.
#include "dbus-shared.h"
/* DBus Prototypes */
-static gboolean _application_service_server_get_applications (ApplicationServiceAppstore * appstore, GPtrArray ** apps);
+static gboolean _application_service_server_get_applications (ApplicationServiceAppstore * appstore, GPtrArray ** apps, GError ** error);
#include "application-service-server.h"
@@ -624,7 +624,7 @@ application_service_appstore_application_remove (ApplicationServiceAppstore * ap
/* DBus Interface */
static gboolean
-_application_service_server_get_applications (ApplicationServiceAppstore * appstore, GPtrArray ** apps)
+_application_service_server_get_applications (ApplicationServiceAppstore * appstore, GPtrArray ** apps, GError ** error)
{
ApplicationServiceAppstorePrivate * priv = APPLICATION_SERVICE_APPSTORE_GET_PRIVATE(appstore);
@@ -633,7 +633,7 @@ _application_service_server_get_applications (ApplicationServiceAppstore * appst
gint position = 0;
for (listpntr = priv->applications; listpntr != NULL; listpntr = g_list_next(listpntr)) {
- GValueArray * values = g_value_array_new(0);
+ GValueArray * values = g_value_array_new(5);
GValue value = {0};