aboutsummaryrefslogtreecommitdiff
path: root/tests/test-approver.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-07-09 21:14:25 -0500
committerTed Gould <ted@gould.cx>2010-07-09 21:14:25 -0500
commit0bf54f57b3212c020be3dd493829fa67516a7143 (patch)
tree07ba39aa716213f8f850d232382cb117f0bb0e38 /tests/test-approver.c
parentd7c39d7b2654985016f533217e300b5dd5573020 (diff)
downloadlibayatana-appindicator-0bf54f57b3212c020be3dd493829fa67516a7143.tar.gz
libayatana-appindicator-0bf54f57b3212c020be3dd493829fa67516a7143.tar.bz2
libayatana-appindicator-0bf54f57b3212c020be3dd493829fa67516a7143.zip
Filling out the approver prototype
Diffstat (limited to 'tests/test-approver.c')
-rw-r--r--tests/test-approver.c11
1 files changed, 7 insertions, 4 deletions
diff --git a/tests/test-approver.c b/tests/test-approver.c
index 609036c..44cd5b4 100644
--- a/tests/test-approver.c
+++ b/tests/test-approver.c
@@ -35,7 +35,7 @@ GType test_approver_get_type (void);
static void test_approver_class_init (TestApproverClass *klass);
static void test_approver_init (TestApprover *self);
-static void _notification_approver_server_approve_item (void);
+static gboolean _notification_approver_server_approve_item (TestApprover * ta, const gchar * id, const gchar * category, guint pid, const gchar * address, const gchar * path, gboolean * approved, GError ** error);
#include "../src/notification-approver-server.h"
@@ -66,10 +66,13 @@ test_approver_init (TestApprover *self)
return;
}
-static void
-_notification_approver_server_approve_item (void)
+static gboolean
+_notification_approver_server_approve_item (TestApprover * ta, const gchar * id, const gchar * category, guint pid, const gchar * address, const gchar * path, gboolean * approved, GError ** error)
{
- return;
+ *approved = TRUE;
+
+
+ return TRUE;
}
static void