gtk-demo: Add keywords to demos

Add the names of the main widgets as keywords to
our demos, but also things like "game". This helps
finding relevant demos in our growing list. You
can now for example type "label", and find the
"error states" and "links" demos showing GtkLabel
features.
This commit is contained in:
Matthias Clasen 2020-09-13 14:59:33 -04:00
parent 691261c71a
commit d732c869c2
46 changed files with 55 additions and 21 deletions

View File

@ -1,8 +1,8 @@
/* Assistant /* Assistant
* *
* Demonstrates a sample multi-step assistant. Assistants are used to divide * Demonstrates a sample multi-step assistant with GtkAssistant. Assistants
* an operation into several simpler sequential steps, and to guide the user * are used to divide an operation into several simpler sequential steps,
* through these steps. * and to guide the user through these steps.
*/ */
#include <gtk/gtk.h> #include <gtk/gtk.h>

View File

@ -1,4 +1,5 @@
/* Combo Boxes /* Combo Boxes
* #Keywords: GtkCellRenderer
* *
* The GtkComboBox widget allows to select one option out of a list. * The GtkComboBox widget allows to select one option out of a list.
* The GtkComboBoxEntry additionally allows the user to enter a value * The GtkComboBoxEntry additionally allows the user to enter a value

View File

@ -1,4 +1,5 @@
/* Constraints/Simple /* Constraints/Simple
* #Keywords: GtkLayoutManager
* *
* GtkConstraintLayout provides a layout manager that uses relations * GtkConstraintLayout provides a layout manager that uses relations
* between widgets (also known as "constraints") to compute the position * between widgets (also known as "constraints") to compute the position

View File

@ -1,4 +1,5 @@
/* Constraints/Interactive /* Constraints/Interactive
* #Keywords: GtkConstraintLayout
* *
* Demonstrate how constraints can be updates during user interaction. * Demonstrate how constraints can be updates during user interaction.
* The vertical edge between the buttons can be dragged with the mouse. * The vertical edge between the buttons can be dragged with the mouse.

View File

@ -1,7 +1,6 @@
/* Theming/CSS Accordion /* Theming/CSS Accordion
* *
* A simple accordion demo written using CSS transitions and multiple backgrounds * A simple accordion demo written using CSS transitions and multiple backgrounds
*
*/ */
#include <gtk/gtk.h> #include <gtk/gtk.h>

View File

@ -1,8 +1,7 @@
/* Theming/CSS Basics /* Theming/CSS Basics
* *
* Gtk themes are written using CSS. Every widget is build of multiple items * GTK themes are written using CSS. Every widget is build of multiple items
* that you can style very similarly to a regular website. * that you can style very similarly to a regular website.
*
*/ */
#include <gtk/gtk.h> #include <gtk/gtk.h>

View File

@ -1,8 +1,7 @@
/* Theming/Multiple Backgrounds /* Theming/Multiple Backgrounds
* *
* Gtk themes are written using CSS. Every widget is build of multiple items * GTK themes are written using CSS. Every widget is build of multiple items
* that you can style very similarly to a regular website. * that you can style very similarly to a regular website.
*
*/ */
#include <gtk/gtk.h> #include <gtk/gtk.h>

View File

@ -1,4 +1,5 @@
/* Dialogs /* Dialogs
* #Keywords: GtkMessageDialog
* *
* Dialogs are used to pop up transient windows for information * Dialogs are used to pop up transient windows for information
* and user feedback. * and user feedback.

View File

@ -1,4 +1,5 @@
/* Drawing Area /* Drawing Area
* #Keywords: GtkDrawingArea
* *
* GtkDrawingArea is a blank area where you can draw custom displays * GtkDrawingArea is a blank area where you can draw custom displays
* of various kinds. * of various kinds.

View File

@ -1,4 +1,5 @@
/* Tree View/Filter Model /* Tree View/Filter Model
* #Keywords: GtkTreeView
* *
* This example demonstrates how GtkTreeModelFilter can be used not * This example demonstrates how GtkTreeModelFilter can be used not
* just to show a subset of the rows, but also to compute columns * just to show a subset of the rows, but also to compute columns

View File

@ -1,4 +1,5 @@
/* Fixed Layout /* Fixed Layout
* #Keywords: GtkLayoutManager
* *
* GtkFixed is a container that allows placing and transforming * GtkFixed is a container that allows placing and transforming
* widgets manually. * widgets manually.

View File

@ -1,4 +1,5 @@
/* Gestures /* Gestures
* #Keywords: GtkGesture
* *
* Perform gestures on touchscreens and other input devices. This * Perform gestures on touchscreens and other input devices. This
* demo reacts to long presses and swipes from all devices, plus * demo reacts to long presses and swipes from all devices, plus

View File

@ -1,4 +1,5 @@
/* Header Bar /* Header Bar
* #Keywords: GtkWindowHandle, GtkWindowControls
* *
* GtkHeaderBar is a container that is suitable for implementing * GtkHeaderBar is a container that is suitable for implementing
* window titlebars. One of its features is that it can position * window titlebars. One of its features is that it can position

View File

@ -1,4 +1,5 @@
/* Text View/Hypertext /* Text View/Hypertext
* #Keywords: GtkTextView, GtkTextBuffer
* *
* Usually, tags modify the appearance of text in the view, e.g. making it * Usually, tags modify the appearance of text in the view, e.g. making it
* bold or colored or underlined. But tags are not restricted to appearance. * bold or colored or underlined. But tags are not restricted to appearance.

View File

@ -1,4 +1,5 @@
/* Benchmark/Scrolling /* Benchmark/Scrolling
* #Keywords: GtkScrolledWindow
* *
* This demo scrolls a view with various content. * This demo scrolls a view with various content.
*/ */

View File

@ -1,4 +1,5 @@
/* Images /* Images
* #Keywords: GdkPaintable, GtkWidgetPaintable
* *
* GtkImage and GtkPicture are used to display an image; the image can be * GtkImage and GtkPicture are used to display an image; the image can be
* in a number of formats. * in a number of formats.

View File

@ -1,4 +1,5 @@
/* Info Bars /* Info Bars
* #Keywords: GtkInfoBar
* *
* Info bar widgets are used to report important messages to the user. * Info bar widgets are used to report important messages to the user.
*/ */

View File

@ -1,4 +1,5 @@
/* Layout Manager/Transition /* Layout Manager/Transition
* #Keywords: GtkLayoutManager
* *
* This demo shows a simple example of a custom layout manager * This demo shows a simple example of a custom layout manager
* and a widget using it. The layout manager places the children * and a widget using it. The layout manager places the children

View File

@ -1,4 +1,5 @@
/* Layout Manager/Transformation /* Layout Manager/Transformation
* #Keywords: GtkLayoutManager, GskTransform
* *
* This demo shows how to use transforms in a nontrivial * This demo shows how to use transforms in a nontrivial
* way with a custom layout manager. The layout manager places * way with a custom layout manager. The layout manager places

View File

@ -3,7 +3,6 @@
* The GtkListStore is used to store data in list form, to be used * The GtkListStore is used to store data in list form, to be used
* later on by a GtkTreeView to display it. This demo builds a * later on by a GtkTreeView to display it. This demo builds a
* simple GtkListStore and displays it. * simple GtkListStore and displays it.
*
*/ */
#include <gtk/gtk.h> #include <gtk/gtk.h>

View File

@ -2,7 +2,6 @@
* *
* GtkListBox allows lists with complicated layouts, using * GtkListBox allows lists with complicated layouts, using
* regular widgets supporting sorting and filtering. * regular widgets supporting sorting and filtering.
*
*/ */
#include <gtk/gtk.h> #include <gtk/gtk.h>

View File

@ -1,4 +1,5 @@
/* Lists/Application launcher /* Lists/Application launcher
* #Keywords: GtkListItemFactory, GListModel
* *
* This demo uses the GtkListView widget as a fancy application launcher. * This demo uses the GtkListView widget as a fancy application launcher.
* *

View File

@ -1,10 +1,11 @@
/* Lists/Clocks /* Lists/Clocks
* #Keywords: GtkGridView, GtkListItemFactory, GListModel
* *
* This demo displays the time in different timezones. * This demo displays the time in different timezones.
* *
* The goal is to show how to set up expressions that track changes * The goal is to show how to set up expressions that track changes
* in objects and make them update widgets. For that, we create a * in objects and make them update widgets. For that, we create a
* GtkClock object that updates its time every second and then use * clock object that updates its time every second and then use
* various ways to display that time. * various ways to display that time.
* *
* Typically, this will be done using GtkBuilder .ui files with the * Typically, this will be done using GtkBuilder .ui files with the

View File

@ -1,4 +1,5 @@
/* Lists/Colors /* Lists/Colors
* #Keywords: GtkSortListModel, GtkMultiSelection
* *
* This demo displays a grid of colors. * This demo displays a grid of colors.
* *

View File

@ -1,4 +1,5 @@
/* Lists/File browser /* Lists/File browser
* #Keywords: GListModel
* *
* This demo shows off the different layouts that are quickly achievable * This demo shows off the different layouts that are quickly achievable
* with GtkListview and GtkGridView by implementing a file browser with * with GtkListview and GtkGridView by implementing a file browser with

View File

@ -1,4 +1,5 @@
/* Lists/Minesweeper /* Lists/Minesweeper
* #Keywords: GtkGridView, GListModel, game
* *
* This demo shows how to develop a user interface for small game using a * This demo shows how to develop a user interface for small game using a
* grid view. * grid view.

View File

@ -1,4 +1,5 @@
/* Lists/Settings /* Lists/Settings
* #Keywords: GtkListItemFactory, GListModel
* *
* This demo shows a settings viewer for GSettings. * This demo shows a settings viewer for GSettings.
* *

View File

@ -1,4 +1,5 @@
/* Lists/Words /* Lists/Words
* #Keywords: GtkListView, GtkFilterListModel
* *
* This demo shows filtering a long list - of words. * This demo shows filtering a long list - of words.
* *

View File

@ -1,4 +1,5 @@
/* Text View/Markup /* Text View/Markup
* #Keywords: GtkTextView
* *
* GtkTextBuffer lets you define your own tags that can influence * GtkTextBuffer lets you define your own tags that can influence
* text formatting in a variety of ways. In this example, we show * text formatting in a variety of ways. In this example, we show

View File

@ -1,4 +1,5 @@
/* Overlay/Interactive Overlay /* Overlay/Interactive Overlay
* #Keywords: GtkOverlay
* *
* Shows widgets in static positions over a main widget. * Shows widgets in static positions over a main widget.
* *

View File

@ -1,4 +1,5 @@
/* Overlay/Decorative Overlay /* Overlay/Decorative Overlay
* #Keywords: GtkOverlay
* *
* Another example of an overlay with some decorative * Another example of an overlay with some decorative
* and some interactive controls. * and some interactive controls.

View File

@ -1,4 +1,5 @@
/* Printing/Page Setup /* Printing/Page Setup
* #Keywords: GtkPageSetup
* *
* GtkPageSetupUnixDialog can be used if page setup is needed * GtkPageSetupUnixDialog can be used if page setup is needed
* independent of a full printing dialog. * independent of a full printing dialog.

View File

@ -1,4 +1,5 @@
/* Paint /* Paint
* #Keywords: GdkDrawingArea, GtkGesture
* *
* Demonstrates practical handling of drawing tablets in a real world * Demonstrates practical handling of drawing tablets in a real world
* usecase. * usecase.

View File

@ -1,4 +1,5 @@
/* Peg Solitaire /* Peg Solitaire
* #Keywords: GtkGridView, game
* *
* This demo demonstrates how to use drag'n'drop to implement peg solitaire. * This demo demonstrates how to use drag'n'drop to implement peg solitaire.
* *

View File

@ -1,4 +1,6 @@
/* Pickers /* Pickers
* #Keywords: GtkColorChooser, GtkFontChooser, GtkFileChooser,
* #Keywords: GtkApplicationChooser
* *
* These widgets are mainly intended for use in preference dialogs. * These widgets are mainly intended for use in preference dialogs.
* They allow to select colors, fonts, files, directories and applications. * They allow to select colors, fonts, files, directories and applications.

View File

@ -2,7 +2,6 @@
* *
* GtkPrintOperation offers a simple API to support printing * GtkPrintOperation offers a simple API to support printing
* in a cross-platform way. * in a cross-platform way.
*
*/ */
#include <math.h> #include <math.h>

View File

@ -4,7 +4,7 @@
* text. The right pane shows a rotated GtkLabel widget. * text. The right pane shows a rotated GtkLabel widget.
* *
* In both cases, a custom PangoCairo shape renderer is installed to draw * In both cases, a custom PangoCairo shape renderer is installed to draw
* a red heard using cairo drawing operations instead of the Unicode heart * a red heart using cairo drawing operations instead of the Unicode heart
* character. * character.
*/ */

View File

@ -1,9 +1,13 @@
/* Entry/Delayed Search Entry /* Entry/Delayed Search Entry
* *
* GtkSearchEntry sets up GtkEntries ready for search. Search entries * GtkSearchEntry provides an entry that is ready for search.
* have their "changed" signal delayed and should be used *
* when the searched operation is slow such as loads of entries * Search entries have their "changed" signal delayed and should
* to search, or online searches. * be used when the searched operation is slow such as loads of
* entries to search, or online searches.
*
* GtkSearchBar allows have a hidden search entry that 'springs
* into action' upon keyboard input.
*/ */
#include <gtk/gtk.h> #include <gtk/gtk.h>

View File

@ -1,4 +1,5 @@
/* OpenGL/Shadertoy /* OpenGL/Shadertoy
* #Keywords: GtkGLArea
* *
* Generate pixels using a custom fragment shader. * Generate pixels using a custom fragment shader.
* *

View File

@ -1,4 +1,5 @@
/* Shortcuts /* Shortcuts
* #Keywords: GtkShortcutController
* *
* GtkShortcut is the abstraction used by GTK to handle shortcuts from * GtkShortcut is the abstraction used by GTK to handle shortcuts from
* keyboard or other input devices. * keyboard or other input devices.

View File

@ -1,8 +1,8 @@
/* Sliding Puzzle /* Sliding Puzzle
* #Keywords: GdkPaintable, GdkGesture, game
* *
* This demo demonstrates how to use gestures and paintables to create a * This demo demonstrates how to use gestures and paintables to create a
* small sliding puzzle game. * small sliding puzzle game.
*
*/ */
#include <gtk/gtk.h> #include <gtk/gtk.h>

View File

@ -1,4 +1,5 @@
/* Spin Buttons /* Spin Buttons
* #Keywords: GtkEntry
* *
* GtkSpinButton provides convenient ways to input data * GtkSpinButton provides convenient ways to input data
* that can be seen as a value in a range. The examples * that can be seen as a value in a range. The examples

View File

@ -1,7 +1,6 @@
/* Spinner /* Spinner
* *
* GtkSpinner allows to show that background activity is on-going. * GtkSpinner allows to show that background activity is on-going.
*
*/ */
#include <glib/gi18n.h> #include <glib/gi18n.h>

View File

@ -1,4 +1,5 @@
/* Text View/Automatic Scrolling /* Text View/Automatic Scrolling
* #Keywords: GtkTextView, GtkScrolledWindow
* *
* This example demonstrates how to use the gravity of * This example demonstrates how to use the gravity of
* GtkTextMarks to keep a text view scrolled to the bottom * GtkTextMarks to keep a text view scrolled to the bottom

View File

@ -1,4 +1,5 @@
/* Overlay/Transparency /* Overlay/Transparency
* #Keywords: GtkOverlay, GtkSnapshot
* *
* Blur the background behind an overlay. * Blur the background behind an overlay.
*/ */

View File

@ -1,4 +1,6 @@
/* Video Player /* Video Player
* #Keywords: GtkVideo, GtkMediaStream, GtkMediaFile, GdkPaintable
* #Keywords: GtkMediaControls
* *
* This is a simple video player using just GTK widgets. * This is a simple video player using just GTK widgets.
*/ */