Go-For-It
Go-For-It copied to clipboard
Implement GtkShortcutsWindow
See https://developer.gnome.org/gtk3/stable/GtkShortcutsWindow.html and https://wiki.gnome.org/Design/OS/KeyboardShortcuts
It isn't GtkShortcutsWindow and it isn't finished, but a basic shortcuts window is now included.
GtkShortcutsWindow is not available in gtk 3.18 and I may want to have configurable shortcuts later on and GtkShortcutsWindow does not seem to be well suited for those cases.
thanks for update!
GtkShortcutsWindow works fine for custom keybindings if you define it as function, not using glide .ui file as in examples
but i am agree what 3.18 support could be still a reasonable point while it's used in distros
GtkShortcutsWindow works fine for custom keybindings if you define it as function, not using glide .ui file as in examples
Problem is, the Gtk devs have marked the constructor of Gtk.ShortcutsWindow as protected in the vala bindings (C does not have this notion so nothing will stop you there), which means that I can't really call it directly. I can still create it by calling Object.new(typeof(Gtk.ShortcutsWindow)) but I take this as a hint that the devs do not want users to create instances outside of the Gtk.Builder interfaces.
In the C documentation the constructor is completely missing.