Handle window state properly (implements #52)

Handle the window state as recommended by the Gnome HowDoI guide by
using the wrapper class WindowState with GObject properties and
bindings. Additionally use separate settings for width and height
instead of an array.
This commit is contained in:
coderkun 2018-07-10 22:45:29 +02:00
commit cb585cda1e
3 changed files with 49 additions and 30 deletions

View file

@ -277,7 +277,6 @@
</object>
<object class="GtkApplicationWindow" id="appwindow">
<property name="can_focus">False</property>
<signal name="destroy" handler="on_appwindow_destroy" swapped="no"/>
<signal name="size-allocate" handler="on_appwindow_size_allocate" swapped="no"/>
<signal name="window-state-event" handler="on_appwindow_window_state_event" swapped="no"/>
<child type="titlebar">