Commit Graph

2 Commits

Author SHA1 Message Date
Benjamin Otte
2f0e94ccad 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
 - Activate a GAction
2020-03-22 11:14:07 -04:00
Benjamin Otte
e0602c41d8 gtk-demo: Add a dumb demo for shortcut triggers 2020-03-22 11:14:06 -04:00