X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;ds=sidebyside;f=WebThing.cs;fp=WebThing.cs;h=4bccfbb22859b40bb845281177e753800d788599;hb=83b79eb23390beda1fb04b00be48351fcf1b98af;hp=f325ec3b35cb9b4dfd2ac8c2a59afd5958695f3e;hpb=7bcb5185ed09b9c691bd86d9666733723c1dc203;p=WebThing.git diff --git a/WebThing.cs b/WebThing.cs index f325ec3..4bccfbb 100644 --- a/WebThing.cs +++ b/WebThing.cs @@ -3,6 +3,7 @@ using System.Collections.Generic; using System.Reflection; using System.IO; using System.Text.RegularExpressions; +using System.Runtime.InteropServices; using Gtk; using GtkSharp; using WebKit; @@ -47,13 +48,16 @@ namespace bytex64.WebThing { public Dictionary Options; public string[] Arguments; + [DllImport ("SoupSettings.dll")] + private static extern void soup_settings(); + public void Run() { Application.Init(); ParseArgs(); _Window = new Gtk.Window("WebThing"); - _Window.SetWmclass("WebThing", "webthing"); + _Window.SetWmclass("webthing", "WebThing"); _Window.Role = "browser"; _Window.Destroyed += delegate { Quit(); }; @@ -70,6 +74,8 @@ namespace bytex64.WebThing { _WebView.TitleChanged += delegate(object o, TitleChangedArgs e) { _Window.Title = e.Title + " - WebThing"; }; + soup_settings(); + _ScrolledWindow.Add(_WebView); _Window.ShowAll();