lists.zerezo.com
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
***BOGO*** Re: How to find the exact size a button is going to get?
- Date: Tue, 03 Jun 2008 06:44:54 -0400
- From: Paul Davis <paul@xxxxxxxxxxxxxxxxxxxxx>
- Subject: ***BOGO*** Re: How to find the exact size a button is going to get?
On Tue, 2008-06-03 at 09:36 +0200, Toralf Lund wrote:
> varun shrivastava wrote:
> > you can access GtkAllocation structure which stores the x, y, width
> > and height allocated to a widget
> That will (only) give me the size of an existing widget, won't it?
>
> Not what I'm looking for; as I was saying, I want to know what size a
> widget will have without actually creating it. Or differently put, I'd
> like to know the "rules" for margins/borders that are drawn around a
> widget I add to a button.
gtk_widget_size_request() is your friend.
_______________________________________________
gtk-list mailing list
gtk-list@xxxxxxxxx
http://mail.gnome.org/mailman/listinfo/gtk-list