Re: get a widget size

> Hello !
> I have a problem with Gtk : I can't find method to determine the size of
> a widget with Gtk-1.4, with Gtk-2.0, a fonction gtk_widget_get_size give
> the width and height of a widget. Do anyone know how can I make the same
> thing with gtk-1.4, please ?
I guess there is no function to get size of a widget in gtk 1.2 - you
must refer to the widget allocation structure (GtkAllocation) eg.

sizex = widget->allocation.x;


:: Igor Popik, THrull ircnet    
:: mailto:igipop wsfiz edu pl, mailto:thrull slackware pl

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