Re: [Vala] Newbie need help
- From: Ulink <ulink gmx at>
- To: vala-list gnome org
- Subject: Re: [Vala] Newbie need help
- Date: Tue, 23 Oct 2018 16:28:03 +0200
Or try this:
First, install packages: sudo apt install tcc libgtk-vnc-2.0-dev
Second, try this VNC client script:
#!/usr/bin/vala --Xcc=-w --cc=tcc --pkg gtk+-3.0 --pkg gtk-vnc-2.0
int main (string[] args)
{
Gtk.init (ref args);
var window = new Gtk.Window ();
window.destroy.connect(Gtk.main_quit);
var vncDisp = new Vnc.Display();
window.add(vncDisp);
vncDisp.open_host("your-vnc-host-name", "5900");
window.show_all();
Gtk.main();
return 0;
}
Cool, eh?
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]