diff --git a/examples/bp/Makefile.am b/examples/bp/Makefile.am index 6930521002..d521715eae 100644 --- a/examples/bp/Makefile.am +++ b/examples/bp/Makefile.am @@ -19,7 +19,8 @@ nodist_bloatpad_SOURCES = bloatpad-gresources.c resource_files = \ bloatpad.gresources.xml \ - gtk/menus.ui + gtk/menus.ui \ + gtk/help-overlay.ui bloatpad-gresources.c: $(resource_files) $(AM_V_GEN) $(GLIB_COMPILE_RESOURCES) --target=$@ --sourcedir=$(srcdir) --generate-source $< diff --git a/examples/bp/bloatpad.gresources.xml b/examples/bp/bloatpad.gresources.xml index 2e5c42314b..04650a7212 100644 --- a/examples/bp/bloatpad.gresources.xml +++ b/examples/bp/bloatpad.gresources.xml @@ -3,5 +3,6 @@ gtk/menus.ui + gtk/help-overlay.ui diff --git a/examples/bp/gtk/help-overlay.ui b/examples/bp/gtk/help-overlay.ui new file mode 100644 index 0000000000..ac166b79a7 --- /dev/null +++ b/examples/bp/gtk/help-overlay.ui @@ -0,0 +1,47 @@ + + + + 1 + + + 1 + shortcuts + 12 + + + 1 + Shortcuts + + + 1 + <Primary>c + Copy + + + + + 1 + <Primary>p + Paste + + + + + 1 + F11 + Fullscreen + + + + + 1 + <Primary>q + Quit + + + + + + + + diff --git a/examples/bp/gtk/menus.ui b/examples/bp/gtk/menus.ui index 60abf4adb8..d3adad8e4a 100644 --- a/examples/bp/gtk/menus.ui +++ b/examples/bp/gtk/menus.ui @@ -60,6 +60,12 @@ app.edit-accels +
+ + Shortcuts... + win.show-help-overlay + +
_View