diff --git a/demos/gtk-demo/demo.gresource.xml b/demos/gtk-demo/demo.gresource.xml index 4dea3a0d82..d0e80f2b34 100644 --- a/demos/gtk-demo/demo.gresource.xml +++ b/demos/gtk-demo/demo.gresource.xml @@ -96,6 +96,7 @@ shortcuts-builder.ui shortcuts-gedit.ui shortcuts-clocks.ui + shortcuts-boxes.ui revealer.ui diff --git a/demos/gtk-demo/shortcuts-boxes.ui b/demos/gtk-demo/shortcuts-boxes.ui new file mode 100644 index 0000000000..6bcaf8ab4e --- /dev/null +++ b/demos/gtk-demo/shortcuts-boxes.ui @@ -0,0 +1,167 @@ + + + + + + 1 + + + + 1 + shortcuts + 12 + + + + + 1 + Overview + overview + + + + 1 + F1 + Help + + + + + + 1 + <Ctrl>n + Create a new box + + + + + + 1 + <Ctrl>f + Search + + + + + + 1 + <Ctrl>k + Keyboard shortcuts + + + + + + 1 + <Ctrl>q + Close Window/Quit Boxes + + + + + + + + + 1 + Box Creation and Properties + wizard + + + + + 1 + ltr + <Alt>Right + Switch to the next page + + + + + + 1 + ltr + <Alt>Left + Switch to the previous page + + + + + + + 1 + rtl + <Alt>Left + Switch to the next page + + + + + + 1 + rtl + <Alt>Right + Switch to the previous page + + + + + + + + + 1 + Box Display + display + + + + 1 + Control_L+Alt_L + Grab/Ungrab keyboard + + + + + + + 1 + ltr + <Alt>Left + Back to overview + + + + + + + 1 + rtl + <Alt>Right + Back to overview + + + + + + 1 + <Ctrl>q + Close window/Quit Boxes + + + + + + 1 + F11 + Fullscreen/Restore from fullscreen + + + + + + + + + + diff --git a/demos/gtk-demo/shortcuts.c b/demos/gtk-demo/shortcuts.c index 672998449a..dbe02f66e5 100644 --- a/demos/gtk-demo/shortcuts.c +++ b/demos/gtk-demo/shortcuts.c @@ -49,6 +49,24 @@ clocks_shortcuts_stopwatch (GtkWidget *window) show_shortcuts (window, "shortcuts-clocks", "stopwatch"); } +static void +boxes_shortcuts (GtkWidget *window) +{ + show_shortcuts (window, "shortcuts-boxes", NULL); +} + +static void +boxes_shortcuts_wizard (GtkWidget *window) +{ + show_shortcuts (window, "shortcuts-boxes", "wizard"); +} + +static void +boxes_shortcuts_display (GtkWidget *window) +{ + show_shortcuts (window, "shortcuts-boxes", "display"); +} + GtkWidget * do_shortcuts (GtkWidget *do_widget) { @@ -73,6 +91,9 @@ do_shortcuts (GtkWidget *do_widget) "gedit_shortcuts", G_CALLBACK (gedit_shortcuts), "clocks_shortcuts", G_CALLBACK (clocks_shortcuts), "clocks_shortcuts_stopwatch", G_CALLBACK (clocks_shortcuts_stopwatch), + "boxes_shortcuts", G_CALLBACK (boxes_shortcuts), + "boxes_shortcuts_wizard", G_CALLBACK (boxes_shortcuts_wizard), + "boxes_shortcuts_display", G_CALLBACK (boxes_shortcuts_display), NULL); gtk_builder_connect_signals (builder, NULL); window = GTK_WIDGET (gtk_builder_get_object (builder, "window1")); diff --git a/demos/gtk-demo/shortcuts.ui b/demos/gtk-demo/shortcuts.ui index da480c78ab..cb64e1e658 100644 --- a/demos/gtk-demo/shortcuts.ui +++ b/demos/gtk-demo/shortcuts.ui @@ -38,6 +38,27 @@ + + + 1 + Boxes + + + + + + 1 + Boxes - Wizard + + + + + + 1 + Boxes - Display + + +