[glib/wip/gapplication] application: Fix ::action handler
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib/wip/gapplication] application: Fix ::action handler
- Date: Tue, 18 May 2010 08:45:49 +0000 (UTC)
commit 34adcbedc22e8885761e0b086f695edf1489626b
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Tue May 18 09:45:11 2010 +0100
application: Fix ::action handler
gio/tests/application.c | 9 +++++++++
1 files changed, 9 insertions(+), 0 deletions(-)
---
diff --git a/gio/tests/application.c b/gio/tests/application.c
index 71526d1..e9b2317 100644
--- a/gio/tests/application.c
+++ b/gio/tests/application.c
@@ -18,8 +18,17 @@ static gboolean action_invoked = FALSE;
static void
on_app_action (GApplication *application,
+ const gchar *action_name,
guint action_timestamp)
{
+ if (g_test_verbose ())
+ g_print ("Action '%s' invoked (timestamp: %u, expected: %u)\n",
+ action_name,
+ action_timestamp,
+ timestamp);
+
+ g_assert_cmpstr (action_name, ==, "About");
+
action_invoked = TRUE;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]