[9223] in The GTK GIMP ToolKit mailing list archive

home help back first fref pref prev next nref lref last post

[gtk-list] Default sizes for widgets: how?

daemon@ATHENA.MIT.EDU (Ang Chin Han)
Tue Oct 13 03:23:29 1998

Date: Tue, 13 Oct 1998 16:39:08 +1000
From: Ang Chin Han <angch@yoyo.cc.monash.edu.au>
To: gtk-list@redhat.com
X-smtpmasqed-from: angch@szap
Resent-From: gtk-list@redhat.com
Reply-To: gtk-list@redhat.com

How does one set default sizes for widgets in GTK, without changing
the minimum geometry? e.g. I want the default size for a text widget
to be about 100x60, but with a minimum of 50x30. Currently, the way I did
it is to set_usize() to 50x30, then resize the toplevel window to a
decent size (without setting the minimum on the toplevel window). Is
this the correct way? Sounds a bit hacky to me.


P.S. Thanks to those who sent help on the deiconizing tips!

-- 
 |)        Ang Chin Han <angch@yoyo.cc.monash.edu.au>       sza|)
 |)ee  SMCH '94 page: http://yoyo.cc.monash.edu.au/~angch/     |
perl -e '$_=" "x4;for $a(split//,"Japhuneasorcttlk:h:e:e:r:r:::")\
{s/:*~/ /g&push @j,$_ until s/ /$a~/}print join("-->\n",@j),"\n";'

-- 
To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null


home help back first fref pref prev next nref lref last post