On 6/4/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
>
>
> var
> grect :PGdkRectangle;
>
> begin
> gdk_window_get_frame_extents(GDK_WINDOW(widget^.window),@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
_______________________________________________
fpc-pascal maillist - fpc-pascal@lists.freepascal.org
http://lists.freepascal.org/mailman/listinfo/fpc-pascal