Repository: lutris/lutris

Issue:
Lutris UI forces a resolution of 740x458
This seems to be a regression since 0.3.7.3 and later (tested right now in 0.3.7.5), as I don't remember having this issue with 0.3.7.2.

When I start Lutris, it shows up in the bottom right corner as a small window of 740x458. If I move and/or resize the window, the change settings are lost at the next start. If I modify the resolution in `~/.config/lutris/lutris.conf` myself, the setting is ignored and replaced by 740x458 at the start.

When starting Lutris in a terminal, I get those warnings:

```
$ lutris       
which: no aterm in (/bin:/usr/bin:/usr/local/bin:/usr/local/games:/usr/games:/usr/lib64/qt4/bin:/usr/lib64/qt5/bin:/home/akien/bin)
which: no cool-retro-term in (/bin:/usr/bin:/usr/local/bin:/usr/local/games:/usr/games:/usr/lib64/qt4/bin:/usr/lib64/qt5/bin:/home/akien/bin)
which: no Eterm in (/bin:/usr/bin:/usr/local/bin:/usr/local/games:/usr/games:/usr/lib64/qt4/bin:/usr/lib64/qt5/bin:/home/akien/bin)
which: no lilyterm in (/bin:/usr/bin:/usr/local/bin:/usr/local/games:/usr/games:/usr/lib64/qt4/bin:/usr/lib64/qt5/bin:/home/akien/bin)
which: no lxterminal in (/bin:/usr/bin:/usr/local/bin:/usr/local/games:/usr/games:/usr/lib64/qt4/bin:/usr/lib64/qt5/bin:/home/akien/bin)
which: no pantheon-terminal in (/bin:/usr/bin:/usr/local/bin:/usr/local/games:/usr/games:/usr/lib64/qt4/bin:/usr/lib64/qt5/bin:/home/akien/bin)
which: no roxterm in (/bin:/usr/bin:/usr/local/bin:/usr/local/games:/usr/games:/usr/lib64/qt4/bin:/usr/lib64/qt5/bin:/home/akien/bin)
which: no rxvt in (/bin:/usr/bin:/usr/local/bin:/usr/local/games:/usr/games:/usr/lib64/qt4/bin:/usr/lib64/qt5/bin:/home/akien/bin)
which: no sakura in (/bin:/usr/bin:/usr/local/bin:/usr/local/games:/usr/games:/usr/lib64/qt4/bin:/usr/lib64/qt5/bin:/home/akien/bin)
which: no st in (/bin:/usr/bin:/usr/local/bin:/usr/local/games:/usr/games:/usr/lib64/qt4/bin:/usr/lib64/qt5/bin:/home/akien/bin)
which: no terminator in (/bin:/usr/bin:/usr/local/bin:/usr/local/games:/usr/games:/usr/lib64/qt4/bin:/usr/lib64/qt5/bin:/home/akien/bin)
which: no terminology in (/bin:/usr/bin:/usr/local/bin:/usr/local/games:/usr/games:/usr/lib64/qt4/bin:/usr/lib64/qt5/bin:/home/akien/bin)
which: no termite in (/bin:/usr/bin:/usr/local/bin:/usr/local/games:/usr/games:/usr/lib64/qt4/bin:/usr/lib64/qt5/bin:/home/akien/bin)
which: no urxvt in (/bin:/usr/bin:/usr/local/bin:/usr/local/games:/usr/games:/usr/lib64/qt4/bin:/usr/lib64/qt5/bin:/home/akien/bin)
which: no wterm in (/bin:/usr/bin:/usr/local/bin:/usr/local/games:/usr/games:/usr/lib64/qt4/bin:/usr/lib64/qt5/bin:/home/akien/bin)
which: no xfce4-terminal in (/bin:/usr/bin:/usr/local/bin:/usr/local/games:/usr/games:/usr/lib64/qt4/bin:/usr/lib64/qt5/bin:/home/akien/bin)
which: no yuakuake in (/bin:/usr/bin:/usr/local/bin:/usr/local/games:/usr/games:/usr/lib64/qt4/bin:/usr/lib64/qt5/bin:/home/akien/bin)
which: no xboxdrv in (/bin:/usr/bin:/usr/local/bin:/usr/local/games:/usr/games:/usr/lib64/qt4/bin:/usr/lib64/qt5/bin:/home/akien/bin)
/usr/lib/python2.7/site-packages/lutris/gui/runnersdialog.py:15: PyGIDeprecationWarning: GObject.SIGNAL_RUN_FIRST is deprecated; use GObject.SignalFlags.RUN_FIRST instead
  "runner-installed": (GObject.SIGNAL_RUN_FIRST, None, ()),
/usr/lib/python2.7/site-packages/lutris/gui/cellrenderers.py:21: PyGIDeprecationWarning: GObject.PARAM_READWRITE is deprecated; use GObject.ParamFlags.READWRITE (glib 2.42+) instead
  flags=(GObject.PARAM_READWRITE | GObject.PARAM_CONSTRUCT))
/usr/lib/python2.7/site-packages/lutris/gui/cellrenderers.py:21: PyGIDeprecationWarning: GObject.PARAM_CONSTRUCT is deprecated; use GObject.ParamFlags.CONSTRUCT instead
  flags=(GObject.PARAM_READWRITE | GObject.PARAM_CONSTRUCT))
/usr/lib/python2.7/site-packages/lutris/gui/gameviews.py:95: PyGIDeprecationWarning: GObject.SIGNAL_RUN_FIRST is deprecated; use GObject.SignalFlags.RUN_FIRST instead
  "icons-changed": (GObject.SIGNAL_RUN_FIRST, None, (str,))
/usr/lib/python2.7/site-packages/lutris/gui/gameviews.py:187: PyGIDeprecationWarning: GObject.SIGNAL_RUN_FIRST is deprecated; use GObject.SignalFlags.RUN_FIRST instead
  "game-selected": (GObject.SIGNAL_RUN_FIRST, None, ()),
/usr/lib/python2.7/site-packages/lutris/gui/gameviews.py:188: PyGIDeprecationWarning: GObject.SIGNAL_RUN_FIRST is deprecated; use GObject.SignalFlags.RUN_FIRST instead
  "game-activated": (GObject.SIGNAL_RUN_FIRST, None, ()),
/usr/lib/python2.7/site-packages/lutris/gui/gameviews.py:189: PyGIDeprecationWarning: GObject.SIGNAL_RUN_FIRST is deprecated; use GObject.SignalFlags.RUN_FIRST instead
  "game-installed": (GObject.SIGNAL_RUN_FIRST, None, (int,)),
/usr/lib/python2.7/site-packages/lutris/util/service.py:32: PyGIDeprecationWarning: Since version 3.11, calling threads_init is no longer needed. See: https://wiki.gnome.org/PyGObject/Threading
  GObject.threads_init()
```

I'm using the following libraries:
- Python 2.7.11
- GObject 3.19.91
- GTK+ 3.19.91



Discussion:
Still the same issue with:
- GObject 3.20.0
- GTK+ 3.20.2


Resolving patch:
diff --git a/lutris/gui/lutriswindow.py b/lutris/gui/lutriswindow.py
--- a/lutris/gui/lutriswindow.py
+++ b/lutris/gui/lutriswindow.py
@@ -63,6 +63,8 @@ def __init__(self, service=None):
         width = int(settings.read_setting('width') or 800)
         height = int(settings.read_setting('height') or 600)
         self.window_size = (width, height)
+        window = self.builder.get_object('window')
+        window.resize(width, height)
         view_type = self.get_view_type()
         self.icon_type = self.get_icon_type(view_type)
         filter_installed = \


Test patch: