using System.Reflection;
using System.IO;
using System.Text.RegularExpressions;
+using System.Runtime.InteropServices;
using Gtk;
using GtkSharp;
using WebKit;
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(); };
_WebView.TitleChanged += delegate(object o, TitleChangedArgs e) {
_Window.Title = e.Title + " - WebThing";
};
+ soup_settings();
+
_ScrolledWindow.Add(_WebView);
_Window.ShowAll();