Re: How to resize a widget?
- From: <learfox furry ao net>
- To: Owen Taylor <otaylor redhat com>
- Cc: GTK Application Development List <gtk-app-devel-list gnome org>
- Subject: Re: How to resize a widget?
- Date: Thu, 10 May 2001 00:44:58 -0700 (PDT)
Calling gtk_widget_queue_resize() on the toplevel window may do what
you want.
Thanks a bunch!! That did the trick! :)
(What you are running into, I think, is that GTK+ has a concept of
'hysteresis' - generally, a widget will be reallocated a new size only
if it needs MORE size than it currently has, not less; so if the
size of widget is changing, it may not be the same size as if
the layout was done from scratch. I have some hope of getting rid
of this in the future, but haven't really gone through and figured
out what that would take.)
Hmm, it's gonna be difficult since GTK+ is pretty much very `desktop space
efficient'. Meaning it wants to use as little space as possible (much
different than say Motif).
I would suggest a new function to set the exact size and force it to take
on that size. There might be apps that currently rely on certain
behavours of gtk_widget_set_usize().
--
Sincerely, ,"-_ \|/
-Capt. Taura M. , O=__ --X--
..__ ,_JNMNNEO=_ /|\
OMNOUMmnne. {OMMNNNEEEEOO=_
UOOOBIOOOEOMMn. 'LONMMMMNNEEEOOO=.__..,,..
UUOOEUUOOOOOOOObe '"=OMMMMWNEEEOOOOO,"=OEEEOO=,._
OOUUUIEEIOONNOIUbe. "7OMMMMNNNNNWWEEEEOOOOOO" "'.
EEBNNMMMNWNWWEEIMMNe. __ 7EMMMNNNNNWWWEEEEEEEOO. " .
NNMMMMWWWMMMWEINMMMNn "=BBEEEEMMMMMMMMNNNWWWEEOOOOO=._ .
http://furry.ao.net/~learfox/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]