Re: [gtk-list] Re: widgets not always resizing????????????
- From: raster redhat com
- To: gtk-list redhat com
- cc: owt1 cornell edu
- Subject: Re: [gtk-list] Re: widgets not always resizing????????????
- Date: Mon, 19 Jan 1998 19:24:55 -0500 (EST)
On 19 Jan, Owen Taylor shouted:
->
-> > Has anyone had the problem where they create a drawing area, then call
-> > gtk_drawing_area_size() on it an dit doesn't resize?
-> > I've gotten around this by after the area size doing a hide then show..
-> > but its ugly as hell. and then the callback signal for the configure
-> > event on the drawing area does get called.. but the area isn't resized,
-> > and so the widget isn't sized properly and the drawing is all wrong...
-> > anyone got workarounds/hints/tips ?
->
-> drawing_area_size merely changes the _requested_ size. In fact,
-> even that requested size can be overriden by gtk_widget_set_usize().
-> (Drawing_area_size probably should be thought of as changing
-> the default size.)
->
-> Most likely, you need to change the policy on the toplevel window.
->
-> void gtk_window_set_policy (GtkWindow *window,
-> gint allow_shrink,
-> gint allow_grow,
-> gint auto_shrink);
already put that on the parent window (its an actual window) allowed it
to grow and shrink.
-> But if the configure event gets called with a size the widget
-> doesn't have, that is a bug.
the widget has the size the configre event sends, but i resized it to
somehting else.. that resize never hapens.. even if i queue the draw...
no matter what i do eventually it screws up..
-> Regards,
-> Owen
->
--
--------------- Codito, ergo sum - "I code, therefore I am" --------------------
raster@rasterman.com /\___ /\ ___/||\___ ____/|/\___ raster@redhat.com
Carsten Haitzler | _ //__\\ __||_ __\\ ___|| _ / Red Hat Advanced
218/21 Conner Drive || // __ \\_ \ | | \ _/_|| / Development Labs
Chapel Hill NC 27514 USA ||\\\/ \//__/ |_| /___/||\\ 919 547 0012 ext 282
+1 (919) 929 9443, 801 4392 For pure Enlightenmenthttp://www.rasterman.com/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]