preferences: Set default_width to omit back button

The sizing of the preferences window depends on the button labels and
tends to be too narrow which makes the "back" button of
`HdyPreferencesWindow` to be shown. It's a bit weird to see this on the
desktop when there's plenty of space available.

This is shown by `HdyHeaderBar` when it considers a window to be
"mobile" which happens when its width is less than MOBILE_WINDOW_WIDTH
(400) or it's height less than MOBILE_WINDOW_HEIGHT (800) (see
`libhandy/src/hdy-header-bar.c`).
This commit is contained in:
Diego Escalante Urrelo 2020-07-03 14:22:47 -05:00
parent 2d1ed8df09
commit e6b5beb46b

View file

@ -35,6 +35,7 @@ public class Components.PreferencesWindow : Hdy.PreferencesWindow {
Application.PluginManager plugins) {
Object(
application: parent.application,
default_width: 450,
transient_for: parent
);
this.plugins = plugins;