From 12c8596edf111ec4b087ce52f736e32f06638815 Mon Sep 17 00:00:00 2001 From: Ted Gould Date: Fri, 9 Jul 2010 21:15:49 -0500 Subject: Filling out the approve function. --- tests/test-approver.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'tests') 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; } -- cgit v1.2.3