GtkShortcutsWindow: may end up unusable on small screens
Submitted by Christian Stadelmann
Link to original bug (#774075)
Description
Steps to reproduce:
- have a small screen or set your screen resolution low in gnome-control-center. More details below
- open any Gtk+ 3.x application
- open the shortcuts window
What happens: In some application, the shortcuts window ends up being too large for the screen so it cannot be used.
What should happen: No window should be too large for the screen. All window controls must be usable (I'll report a separate bug for that). It must be possible to get to the next page.
Additional information: This issue could be solved on an application level, but I think a toolkit level solution would be preferred because
- it is cleaner
- it involves less code changes
- applications don't really want to care about this
Some examples: nautilus, gedit, gnome-builder (all maximized), screen width 1024px: window controls cannot be used unless the user moves GtkShortcutsWindow to the left. nautilus, screen height 786px: Section switcher is drawn out of monitor unless you move GtkShortcutsWindow up. nautilus, screen height 720px: Section switcher is drawn out of monitor and you can't get it to the screen. Impossible to switch section.
I have an idea how to solve this issue: Deprecate and remove (or at least ignore) GtkShortcutsSection and let the toolkit decide how many GtkShortcutsGroups to place per section (page). Allow the toolkit to split shortcuts of a GtkShortcutsGroup over multiple pages. This would involve an API break so it probably should be done before 4.0 gets stable.
Version: 3.22.x