Re: GtkPlug doesn't get mapped

On Sun, 2008-09-14 at 21:32 +0300, natan yellin wrote:
> I've done the same thing in an app of mine and it works fine.
> Have you called gtk_widget_show() on both widgets?
> Also, out of curiosity, what are you trying to do?

Thanks for the response; but I've figured out the problem by now,
fortunately. :-)

The problem was that I wasn't _show'ing the plug at the right time--the
right time being after realize. Part of the reason I ran into this is
that the time at which the plug gets realized can vary. If the plug is
constructed with a socket_id, the plug is "embedded" and then realized.
If the plug is constructed with no socket_id and you subsequently add
the plug to the socket, the plug gets realized before it is "embedded".

So the solution I settled on was to realize the plug explicitly and then
show it.

Braden McDaniel                           e-mail: <braden endoframe com>
<>                    Jabber: <braden jabber org>

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