Thank you,

https://github.com/OpenIndiana/oi-userland/pull/6092


/* making local web apps */
/* golang back end? */
/* compile with valac --cc=gcc-7 --Xcc="-m64" --pkg gtk+-3.0 --pkg webkit2gtk-4.0 */

public class Browser : Gtk.Window {
    private const string URL = "http://127.0.0.1";;
    public Browser () {

    this.title = "Browser";
    this.window_position = Gtk.WindowPosition.CENTER;
    this.destroy.connect (Gtk.main_quit);
    this.set_default_size (800, 600);

    WebKit.WebView thewebview2 = new WebKit.WebView();
    this.add(thewebview2);
    thewebview2.load_uri(Browser.URL);

    }
}

public static int main (string[] args) {
    Gtk.init (ref args);
    Browser window = new Browser ();
    window.show_all ();
    Gtk.main ();
    return 0;
}


_______________________________________________
openindiana-discuss mailing list
[email protected]
https://openindiana.org/mailman/listinfo/openindiana-discuss

Reply via email to