Re: [gtk-list] gtk+ 1.2.4 : a possible bug ingtk_widget_size_allocate()
- From: Tim Janik <timj gtk org>
- To: gtk-list redhat com
- Subject: Re: [gtk-list] gtk+ 1.2.4 : a possible bug ingtk_widget_size_allocate()
- Date: Tue, 24 Aug 1999 12:48:40 +0200 (CEST)
On Tue, 24 Aug 1999, Mario Motta wrote:
>
> showing a modal window allocation happens that
> widget->allocation.wdth and widget->allocation.height
> becomes corrupted with a 65535 value.
> e.g.
> // before showing:
> // window->allocation.width = 1
> // window->allocation.height = 1
> gtk_window_set_modal (GTK_WINDOW(window),TRUE);
> gtk_widget_show(window);
>
> // after showing:
> // window->allocation.width = 1
> // window->allocation.height = 1
> gtk_main();
>
> // reentring from gtk_main
> // allocation.width:190,allocation.height:89
> // as should be
>
> but after gtk_main()
> we get:
> " Gtk-WARNING **: gtk_widget_size_allocate():
> attempt to allocate widget with width 65535 and height 65535"
> i could not track down and discover where allocation struct becomes corrupted.
hi mario,
could you try to nail this down to a small testcase taht i can compile
and run here? in any case what you are reporting here sounds somewhat
strange, as modality doesn't affect a toplevels allocation. are you
sure the widget is still valid after gtk_main()?
>
>
> TIA
> /mario
> --
> Mario Motta, AI Research Group - Rimini
> mmotta@guest.net; mmotta@programmers.net
> http://www.programmers.net/artic/Motta/vdk/index.htm
---
ciaoTJ
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]