Re: locking widgit sizes



Glade2 was deprecated!, therefore some GTK+ functions in glade2 generated code also deprecated.
You better not to set child widget size properties (weight, height, etc.) directly, because user's
theme fonts can make your interface look crap. You can use GtkBox (vbox, hbox) to set your widget
position and size.

You should consider Glade3, but remember that glade is not intended to generate code anymore, 
but to create interface. Instead by using libglade, GTK+ has a method to grab glade xml file converted 
by gtk-builder-convert using GtkBuilder.

--- ajhwb


--- mickhowe bigpond net au wrote:

From: mick <mickhowe bigpond net au>
To: gtk-app-devel-list gnome org
Subject: locking widgit sizes
Date: Mon, 6 Apr 2009 14:23:39 +1000

I'm using glade 2.12 to build an interface for a GTK based chat client and 
having trouble locking the size of buttons, text entry, etc. widgits. 

I've tried setting the height of the container, the height of the text entry & 
the height & width of the buttons but when I test the generated code the size 
of the widgets changes with the size of the 'parent window'.

I read the tutorials and the references until my mind glazes over but I can't 
recognise the solution if its there.

can anyone point me to a reference (manual section, web page, forum post) that 
could get me on track

thanks in advance,
mick
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




_____________________________________________________________
Listen to KNAC, Hit the Home page and Tune In Live! ---> http://www.knac.com



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