Re: Parts of GtkSpinbutton disappearing when reparenting



On 10 Jun 2001 21:44:17 -0400, Havoc Pennington said:

 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.

Oh okay, but I think you misunderstood about my situation,
the GtkSpinButton is not the `child' in the above example you gave.

It's the child of another child... which is a vbox. The vbox is
reparented to some other vbox.

-- 
--
Sincerely,                  ,"-_                         \|/
-Capt. Taura M.             ,   O=__                    --X--
.__                          ,_JNMNNEO=_                 /|\
OMNOUMmnne.                  {OMMNNNEEEEOO=_
UOOOBIOOOEOMMn.               'LONMMMMNNEEEOOO=.__..,,..
UUOOEUUOOOOOOOObe              '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._
OOUUUIEEIOONNOIUbe.                "7OMMMMNNNNNWWEEEEOOOOOO"   "'.
EEBNNMMMNWNWWEEIMMNe.             __  7EMMMNNNNNWWWEEEEEEEOO.     " .
NNMMMMWWWMMMWEINMMMNn            "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._     .
                  http://furry.ao.net/~learfox/






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