Re: GtkPlug doesn't get mapped

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

 



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@xxxxxxxxxxxxx>
<http://endoframe.com>                    Jabber: <braden@xxxxxxxxxx>


_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list

[Index of Archives]     [Touch Screen Library]     [GIMP Users]     [Gnome]     [KDE]     [Yosemite News]     [Steve's Art]

  Powered by Linux