[fpc-pascal] gdk_window_get_frame_extents
Flávio Etrusco
flavio.etrusco at gmail.com
Mon Jun 4 08:37:51 CEST 2007
On 6/4/07, jasj at hydra.ar.wroc.pl <jasj at hydra.ar.wroc.pl> wrote:
> >
>
> >
> > var
> > grect :PGdkRectangle;
> >
> > begin
> > gdk_window_get_frame_extents(GDK_WINDOW(widget^.window), at grect);
> >
> >
> > configure_event := True;
> > end;
> > ===
>
> fpc header for the gdk function is
>
> procedure gdk_window_get_frame_extents(window:PGdkWindow; rect:PGdkRectangle);
>
> so, having grect: pGDKRectangle declared, you should use it rather by
>
> gdk_window_get_frame_extents(GDK_WINDOW(widget^.window),grect);
>
Yes and no. The correct fix is to declare grect as GdkRectagle, as you
need to pass to the function the pointer to an allocated record.
-Flávio
More information about the fpc-pascal
mailing list