From cd0332aad5f0130ea13c10dceadda87b7d3bbf50 Mon Sep 17 00:00:00 2001 From: Benjamin Otte Date: Sat, 18 Aug 2018 07:32:11 +0200 Subject: shortcut: Add GtkShortcutAction Similar to GtkShortcutTrigger, GtkShortCutAction provides all the different ways to activate a shortcut. So far, these different ways are supported: - do nothing - Call a user-provided callback - Call gtk_widget_activate() - Call gtk_widget_mnemonic_activate() - Emit an action signal - Activate an action from the widget's action muxer --- testsuite/gtk/defaultvalue.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'testsuite') diff --git a/testsuite/gtk/defaultvalue.c b/testsuite/gtk/defaultvalue.c index ed20e4f7ff..4222c32b70 100644 --- a/testsuite/gtk/defaultvalue.c +++ b/testsuite/gtk/defaultvalue.c @@ -325,7 +325,8 @@ G_GNUC_END_IGNORE_DEPRECATIONS continue; if (g_type_is_a (type, GTK_TYPE_SHORTCUT) && - strcmp (pspec->name, "trigger") == 0) + (strcmp (pspec->name, "action") == 0 || + strcmp (pspec->name, "trigger") == 0)) continue; if (g_type_is_a (type, GTK_TYPE_SPIN_BUTTON) && -- cgit v1.2.1