Re: All button with the same size.



The most effective way I've found to do it is to reconfigure your packing so 
that you pack all your buttons into the same box and create your hbox or vbox 
so that all the widgets in it are the same size (gtk_vbox_new(TRUE, 0)).

When I've been unable to figure out how to pack the window in a way that works 
with this, I have figured out how big the largest button would be doing a 
get_size_request and used that requisition to set the size of all the 
buttons.

If other people have other solutions I would love to hear them.

Danyel

On Thursday 14 October 2004 02:36 pm, Tobias wrote:
Hi all,

I've a little problem with buttons. The app uses x number of buttons,
the size depends on the content and gtk theme. I would want all the
buttons to be of the same size. I could hardcode
[gtk_widget_set_size_request()] a fixed size for all the buttons, but I
think that it's not a good solution.

Is there another way to make them of the same size? i.e. the size of the
biggest one.

Thanks.

---
Sorry for my horrible english.


_____________________________________
Check All Email Accounts Anywhere!
Check your POP3 and webmail account
from any PC. With no ads
http://www.fusemail.com
_______________________________________________
gtk-app-devel-list mailing list
gtk-app-devel-list gnome org
http://mail.gnome.org/mailman/listinfo/gtk-app-devel-list




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