Moved SoupSettings down to core
[WebThing.git] / WebThing.cs
index f325ec3..4bccfbb 100644 (file)
@@ -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<string,string> 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();