[OpenIndiana-discuss] Vala update

Jason Martin agrellum at gmail.com
Tue Sep 22 14:57:01 UTC 2020


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;
}




More information about the openindiana-discuss mailing list