aboutsummaryrefslogtreecommitdiff
path: root/tests/test-approver.c
diff options
context:
space:
mode:
authorTed Gould <ted@gould.cx>2010-07-09 21:15:49 -0500
committerTed Gould <ted@gould.cx>2010-07-09 21:15:49 -0500
commit12c8596edf111ec4b087ce52f736e32f06638815 (patch)
treee75c6ef4071bbff6cb913cb37ed0e991959c55e4 /tests/test-approver.c
parent0bf54f57b3212c020be3dd493829fa67516a7143 (diff)
downloadayatana-indicator-application-12c8596edf111ec4b087ce52f736e32f06638815.tar.gz
ayatana-indicator-application-12c8596edf111ec4b087ce52f736e32f06638815.tar.bz2
ayatana-indicator-application-12c8596edf111ec4b087ce52f736e32f06638815.zip
Filling out the approve function.
Diffstat (limited to 'tests/test-approver.c')
-rw-r--r--tests/test-approver.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test-approver.c b/tests/test-approver.c
index 44cd5b4..d52a13f 100644
--- a/tests/test-approver.c
+++ b/tests/test-approver.c
@@ -70,7 +70,13 @@ 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)
{
*approved = TRUE;
+ g_debug("Asked to approve indicator");
+ if (g_strcmp0(id, INDICATOR_ID) == 0) {
+ passed = TRUE;
+ }
+
+ g_main_loop_quit(main_loop);
return TRUE;
}