X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;f=WebThing.cs;fp=WebThing.cs;h=8bc589a98a1d1e124be090bdddb8b6759846c6db;hb=2be31e14fb4593a82a52219e534a61a2613ead34;hp=5e2000b0882e720d020f11dc479dbba746fe45ce;hpb=9ae762f9fa6d0ee2789818d19adfd6e938975240;p=WebThing.git diff --git a/WebThing.cs b/WebThing.cs index 5e2000b..8bc589a 100644 --- a/WebThing.cs +++ b/WebThing.cs @@ -65,6 +65,21 @@ namespace bytex64.WebThing { // based on the executable name, which I don't like. _Window.SetWmclass("webthing", "WebThing"); _Window.Role = "browser"; + { + int w, h; + + if (Config.Options.ContainsKey("Width")) + w = Convert.ToInt32(Config.Options["Width"]); + else + w = 640; + + if (Config.Options.ContainsKey("Height")) + h = Convert.ToInt32(Config.Options["Height"]); + else + h = 480; + + _Window.DefaultSize = new Gdk.Size(w, h); + } _Window.Destroyed += delegate { Quit(); }; // Initialize WidgetGrid