[Vala] socket in notebook



Hello.

I'm trying to use Gtk.Socket as a 'content' parameter to Gtk.Notebook but I hit some
problems:

Gtk.Socket sock = new Gtk.Socket();
Gtk.Label title = new Gtk.Label("Loading...");
notebook.append_page(sock, title);

However if I try to access socket_id I got SIGSEGV right away.

I realize it's a tricky to get all the show/realize for widgets in right order so I
would appreciate some concrete examples - how to properly make use of Gtk.Socket in
vala and how to obtain socket_id so I can communicate it to external program to use
with Gtk.Plug.

thanks,
Max.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]