Re: gtk_drawing_area_size, gtk_widget_set_uposition



"Andrés Giraldo" wrote:
> After showing a drawing area widget:
>   gtk_widget_show (drawing_area);
> can I adjust the drawing area size?
> 
>   gtk_drawing_area_size (GTK_DRAWING_AREA
> (drawing_area), width, height);

Hi Andrés, yes, this should work. Do you want the window enclosing the
GtkDrawingArea to get bigger too? You need to use
gtk_window_set_policy() to control this behaviour.

> or its position?
> 
>   gtk_widget_set_uposition (drawing_area, x, y);

I think you should give this the enclosing GtkWindow widget, not the
DrawingArea (if I understand you).

John




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