Re: Reparenting a GtkSocket to another GtkContainer loses its GtkPlug
- From: "Nigel Tao" <nigel tao gnome gmail com>
- To: "Chris Vine" <chris cvine freeserve co uk>
- Cc: gtk-app-devel-list gnome org
- Subject: Re: Reparenting a GtkSocket to another GtkContainer loses its GtkPlug
- Date: Fri, 7 Sep 2007 12:12:37 +1000
You should be able to keep the socket alive by incrementing the
reference count before removing it, and decrementing it again after
adding it in the new container.
I should have mentioned that I g_object_ref the socket before I remove
it, but it is still getting unrealized -- _gtk_socket_end_embedding is
still getting called.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]