-
-
Save caiorss/76e336223bc77f1bdb07140815a8a59a to your computer and use it in GitHub Desktop.
monobrowser based on webkit , first step example http://mapopa.blogspot.com/2011/05/webkit-based-webbrowser-written-in-mono.html
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using System; | |
using Gtk; | |
using WebKit; | |
namespace monobrowser { | |
class coolbrowser { | |
public static void Main () { | |
Application.Init (); | |
Window window = new Window ("a browser in 13 lines..."); | |
window.SetDefaultSize(800,600); | |
window.Destroyed += delegate (object sender, EventArgs e) { | |
Application.Quit (); | |
}; | |
ScrolledWindow scrollWindow = new ScrolledWindow (); | |
WebView webView = new WebView (); | |
webView.Open ("http://mono-project.com"); | |
scrollWindow.Add (webView); | |
window.Add (scrollWindow); | |
window.ShowAll (); | |
Application.Run (); | |
} | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment