Re: [gtk-list] getting the widget size



On Wed, 3 Jun 1998, Kevin Pearson wrote:

> Hello,
> 
> Is there a function or way to get the widget size?
> 
> opposite of gtk_widget_set_usize()?

printf ("widget <%s> size: width=%d, height=%d\n",
        gtk_type_name (GTK_OBJECT_TYPE (widget)),
        widget->allocation.width,
        widget->allocation.height);
> 
> Thanks,
> -- 
> Kevin Pearson
> pearson@micron.net
> 
> -- 
> To unsubscribe: mail -s unsubscribe gtk-list-request@redhat.com < /dev/null
> 
> 

---
ciaoTJ



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