Re: GTK Socket and reparenting



i'm not sure that understand you correctly

but, try to return true on connect event of the socket.
for example

var sock = new Gtk.Socket();
sock.plug_removed.connect(()=>{
     return true;//important! allow reuse of socket
});


2013/11/26 Michal Fizek <fizek michal centrum cz>

Hi,
 i have a problem with GTK Socket. I'm using it to build some GUI for my
beloved urxvt terminal emulator. But I encountered a big problem, when i
need to split screens. URXVT support xembed, so i use GTK Socket to create
window, and pass socked id to urxvt, that plugs and embeds itself into a
socket. However, then i need to reparent socket to another parent(for
example split window, notebook page to another etc.), and there is a
problem. When i try to reparent socket the socket plug(in this case
embedded urxvt) is destroyed. Is there a way to go around this?


Thank you
michael
_______________________________________________
gtk-list mailing list
gtk-list gnome org
https://mail.gnome.org/mailman/listinfo/gtk-list



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