Removes the fixed width/height of the window in the ui file and applies the size from the settings to the window at launch.
This commit is contained in:
MrTimscampi 2016-04-23 01:42:17 +02:00
parent 62c0da20f7
commit 736d43eb9a
2 changed files with 4 additions and 3 deletions

View file

@ -63,6 +63,8 @@ class LutrisWindow(object):
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 = \

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.3 -->
<!-- Generated with glade 3.20.0 -->
<interface>
<requires lib="gtk+" version="3.10"/>
<!-- interface-local-resource-path ../media -->
@ -79,10 +79,9 @@
<property name="icon_name">view-list-symbolic</property>
</object>
<object class="GtkWindow" id="window">
<property name="width_request">640</property>
<property name="height_request">300</property>
<property name="can_focus">False</property>
<property name="title" translatable="yes">Lutris</property>
<property name="window_position">center</property>
<property name="icon">../media/lutris.svg</property>
<property name="icon_name">lutris</property>
<signal name="destroy" handler="on_destroy" swapped="no"/>