Re: Fixed as a NO_WINDOW



Hi Owen,

On 18 Nov 2001, Owen Taylor wrote:

>
> Those were all the API changes. Really, no kidding. Well, almost.
>
> GtkFixed _really_ needs to be a NO_WINDOW widget; this
> has been bugging me since 1.0.
>
>  * For correct theming
>  * For consistency with all other containers that don't draw anything.
>  * For reduced overhead.
>
> Effects:
>
>  * I couldn't find any code in GNOME cvs that this will break
>
>  * If there is something that breaks, insert:
>
> +    GTK_WIDGET_UNSET_FLAGS (fixed, GTK_WIDGET_NO_WINDOW)
>
>    after creating the fixed.
>
>    (I added the hack of making this work, because I'm pretty sure
>    people frequently use GtkFixed as an equivalent of a widget in some
>    other toolkit with fixed placement, and I don't want
>    such people to have write a new widget.)

	Just a heads up that this does break something - the panel's
container, PanelWidget.

	The GTK_WIDGET_UNSET_FLAGS hack works, so we're fine for the
moment, but I haven't looked at why it breaks ...

Cheers,
Mark.




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