[libdazzle] tests: fix shortcut test
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [libdazzle] tests: fix shortcut test
- Date: Wed, 19 Jul 2017 10:09:45 +0000 (UTC)
commit 90913f12b4b682b9b02d9f82b30c890fb071457b
Author: Christian Hergert <chergert redhat com>
Date: Wed Jul 19 03:09:35 2017 -0700
tests: fix shortcut test
this is sort of an absurd situation, with the label and all. make it
global so we can activate it.
tests/test-shortcut-theme.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/tests/test-shortcut-theme.c b/tests/test-shortcut-theme.c
index ca78880..20f3013 100644
--- a/tests/test-shortcut-theme.c
+++ b/tests/test-shortcut-theme.c
@@ -86,7 +86,7 @@ test_shortcut_theme_manager (void)
gtk_widget_show_all (window);
controller = dzl_shortcut_controller_find (label);
g_assert (DZL_IS_SHORTCUT_CONTROLLER (controller));
- dzl_shortcut_controller_add_command_callback (controller, "useless.command.here", "<Control>a", 0,
key_callback, &did_cb, NULL);
+ dzl_shortcut_controller_add_command_callback (controller, "useless.command.here", "<Control>a",
DZL_SHORTCUT_PHASE_GLOBAL, key_callback, &did_cb, NULL);
event = dzl_gdk_synthesize_event_keyval (gtk_widget_get_window (label), GDK_KEY_a);
event->state |= GDK_CONTROL_MASK;
r = dzl_shortcut_manager_handle_event (NULL, event, window);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]