projects
/
WebThing.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Moved SoupSettings down to core
[WebThing.git]
/
WebThing.cs
diff --git
a/WebThing.cs
b/WebThing.cs
index
f325ec3
..
4bccfbb
100644
(file)
--- 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.Reflection;
using System.IO;
using System.Text.RegularExpressions;
+using System.Runtime.InteropServices;
using Gtk;
using GtkSharp;
using WebKit;
using Gtk;
using GtkSharp;
using WebKit;
@@
-47,13
+48,16
@@
namespace bytex64.WebThing {
public Dictionary<string,string> Options;
public string[] Arguments;
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");
public void Run() {
Application.Init();
ParseArgs();
_Window = new Gtk.Window("WebThing");
- _Window.SetWmclass("
WebThing", "webt
hing");
+ _Window.SetWmclass("
webthing", "WebT
hing");
_Window.Role = "browser";
_Window.Destroyed += delegate { Quit(); };
_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";
};
_WebView.TitleChanged += delegate(object o, TitleChangedArgs e) {
_Window.Title = e.Title + " - WebThing";
};
+ soup_settings();
+
_ScrolledWindow.Add(_WebView);
_Window.ShowAll();
_ScrolledWindow.Add(_WebView);
_Window.ShowAll();