diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-11-18 10:48:01 -0500 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-11-18 10:48:57 -0500 |
commit | 04c4b387a025eeda4290c42113ba0f67d5341f62 (patch) | |
tree | 56756b42538786b751030523768aae6802c56995 /demos | |
parent | 9128ad105b1b2644e6cf404e3757bdcf424fc859 (diff) | |
download | gtk+-04c4b387a025eeda4290c42113ba0f67d5341f62.tar.gz |
gtk-demo: Add more keywords
Add GtkShortcutController as a keyword to some demos that
show its use.
Diffstat (limited to 'demos')
-rw-r--r-- | demos/gtk-demo/builder.c | 2 | ||||
-rw-r--r-- | demos/gtk-demo/sliding_puzzle.c | 5 |
2 files changed, 4 insertions, 3 deletions
diff --git a/demos/gtk-demo/builder.c b/demos/gtk-demo/builder.c index 22c06dfa72..082632204a 100644 --- a/demos/gtk-demo/builder.c +++ b/demos/gtk-demo/builder.c @@ -1,5 +1,5 @@ /* Builder - * #Keywords: GMenu, GtkPopoverMenuBar, GtkBuilder, GtkStatusBar, toolbar + * #Keywords: GMenu, GtkPopoverMenuBar, GtkBuilder, GtkStatusBar, GtkShortcutController, toolbar * * Demonstrates a traditional interface, loaded from a XML description, * and shows how to connect actions to the menu items and toolbar buttons. diff --git a/demos/gtk-demo/sliding_puzzle.c b/demos/gtk-demo/sliding_puzzle.c index 4d7e23f908..1af4e2b48a 100644 --- a/demos/gtk-demo/sliding_puzzle.c +++ b/demos/gtk-demo/sliding_puzzle.c @@ -1,5 +1,5 @@ /* Sliding Puzzle - * #Keywords: GdkPaintable, GdkGesture, game + * #Keywords: GdkPaintable, GdkGesture, GtkShortcutController, game * * This demo demonstrates how to use gestures and paintables to create a * small sliding puzzle game. @@ -281,7 +281,8 @@ start_puzzle (GdkPaintable *paintable) gtk_aspect_frame_set_obey_child (GTK_ASPECT_FRAME (frame), FALSE); /* Add shortcuts so people can use the arrow - * keys to move the puzzle */ + * keys to move the puzzle + */ controller = gtk_shortcut_controller_new (); gtk_shortcut_controller_set_scope (GTK_SHORTCUT_CONTROLLER (controller), GTK_SHORTCUT_SCOPE_LOCAL); |