gtk+ 1.2.4 : a possible bug in gtk_widget_size_allocate()




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.


TIA
/mario
--
Mario Motta, AI Research Group - Rimini
mmotta@guest.net; mmotta@programmers.net 
http://www.programmers.net/artic/Motta/vdk/index.htm



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