Re: Bug/Feature Destroying Widgets




Scott Dybiec <sdybiec@humanfactor.com> writes:

> [1  <text/plain; us-ascii (7bit)>]
> The hard work is really paying off . . . the toolkit is awesome!
> 
> A program that worked with a previous version of GTK (0.99.1) no longer
> destroys widgets with the gtk_widget_destroy() command.  If I try to
> destroy a frame, only things *in* the frame are destroyed, not the frame
> itself.  I have attached a program to demonstrate the behavior. The
> program can be compiled with:
> 
> cc     frame_test.c   -o frame_test -lgtk -lgdk -lglib -lX11
> -L/usr/X11R6/lib -lXext -lm
> 
> Is there a new way to destroy widgets or is this a bug introduced in
> recent releases?

The latter. Code was added to gtk_widget_unparent() to reset the
widgets allocation, so that size requests would work right for
reparenting. Unfortunately, that was being done _before_ the
widget's area was cleared.

The (very small) fix will be in the next release.

Regards,
                                        Owen



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