Re: Parts of GtkSpinbutton disappearing when reparenting



"localhost" <learfox furry ao net> writes:
I noticed this with GTK+ 1.2.8, if you create a GtkSpinButton
and parent it to say, a vbox which is in turn parented to
other boxes, if you then reparent any of the boxes to another
box, the text entry portion of the GtkSpinButton gets reparented
but the arrow buttons do not, they just disappear.

Does anyone know why?


Use:
gtk_object_ref (child)
gtk_container_remove (parent,child)
gtk_container_add (newparent, child);
gtk_object_unref (child);

gtk_widget_reparent() doesn't work on SpinButton because SpinButton
has GdkWindow that are not children of widget->window.

Havoc





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