Re: GtkPlug doesn't get mapped

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?


On Thu, Aug 21, 2008 at 9:32 AM, Braden McDaniel <braden endoframe com> wrote:
I have two custom widgets, one derived from GtkSocket and the other
derived from GtkPlug.

In the socket widget's _realize function I create the plug (using D-Bus
calls) and add the plug to the socket with gtk_socket_add_id. I see my
plug get realized and configured; and I see it get the "embedded"
signal. And I see my socket getting "map-event". But I don't see the
plug displayed and the plug's "map-event" signal handler is never run.

Is there a problem with adding the plug to the socket in _realize? I
found this old thread:

There's a lot there that I don't follow at all; but I think one of the
things Owen's saying is that realize needs to finish before adding the
plug to the socket. Is that understanding accurate? Or, more importantly
given that this thread is six years old, does this accurately reflect
the state of affairs in modern GTK+? If so, where is a good place to
hang the call to gtk_socket_add_id?

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

gtk-list mailing list
gtk-list gnome org

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