Go-For-It icon indicating copy to clipboard operation
Go-For-It copied to clipboard

Implement GtkShortcutsWindow

Open actionless opened this issue 6 years ago • 3 comments

See https://developer.gnome.org/gtk3/stable/GtkShortcutsWindow.html and https://wiki.gnome.org/Design/OS/KeyboardShortcuts

actionless avatar Jan 27 '19 04:01 actionless

It isn't GtkShortcutsWindow and it isn't finished, but a basic shortcuts window is now included. simple shortcutswindow 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.

JMoerman avatar May 02 '19 17:05 JMoerman

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

actionless avatar May 03 '19 21:05 actionless

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.

JMoerman avatar May 04 '19 10:05 JMoerman