diff --git a/data/gschema/cl.cromer.ubb.sernatur.db.gschema.xml b/data/gschema/cl.cromer.ubb.sernatur.db.gschema.xml index f31f5d6..54bb022 100644 --- a/data/gschema/cl.cromer.ubb.sernatur.db.gschema.xml +++ b/data/gschema/cl.cromer.ubb.sernatur.db.gschema.xml @@ -1,5 +1,5 @@ - + "localhost" Host to connect to diff --git a/data/gschema/cl.cromer.ubb.sernatur.window.gschema.xml b/data/gschema/cl.cromer.ubb.sernatur.window.gschema.xml index f693864..0e270ca 100644 --- a/data/gschema/cl.cromer.ubb.sernatur.window.gschema.xml +++ b/data/gschema/cl.cromer.ubb.sernatur.window.gschema.xml @@ -1,5 +1,5 @@ - + false Should the program open maximized or not diff --git a/src/sernatur-window.vala b/src/sernatur-window.vala index 9d0bae6..89e33dd 100644 --- a/src/sernatur-window.vala +++ b/src/sernatur-window.vala @@ -25,7 +25,7 @@ namespace Sernatur { public class MainWindow : Gtk.ApplicationWindow { /** - * This is a callback for when the window's state changes + * This is a callback for when the window is maximized or unmaximized * @param widget The widget that called this GtkCallback * @param state The event window state_handler * @return Returns true if the event is handled or false if it isn't @@ -41,9 +41,15 @@ namespace Sernatur { // Unmaximized settings.set_boolean ("maximized", false); } - return true; + return false; } + /** + * This is a callback for when the window's size is changed + * @param widget The widget that called this GtkCallback + * @param event The event that happened + * @return Returns true if the event is handled or false if it isn't + */ [GtkCallback] private bool resize_window(Gtk.Widget widget, Gdk.Event event) { Settings settings = new Settings ("cl.cromer.ubb.sernatur.window");