mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-08-14 16:42:06 +02:00
fixed absolute file
git-svn-id: trunk@2469 -
This commit is contained in:
parent
a7841a6f56
commit
13746d4e7c
@ -112,10 +112,17 @@ end;
|
|||||||
------------------------------------------------------------------------------}
|
------------------------------------------------------------------------------}
|
||||||
function GtkWidgetIsA(Widget: PGtkWidget; AType: TGtkType): boolean;
|
function GtkWidgetIsA(Widget: PGtkWidget; AType: TGtkType): boolean;
|
||||||
begin
|
begin
|
||||||
|
{$IFDEF GTK2}
|
||||||
|
Result:=(Widget<>nil)
|
||||||
|
and (PGtkTypeObject(Widget)^.g_class<>nil)
|
||||||
|
and gtk_type_is_a(PGtkTypeClass(PGtkTypeObject(Widget)^.g_class)^.g_type,
|
||||||
|
AType);
|
||||||
|
{$ELSE}
|
||||||
Result:=(Widget<>nil)
|
Result:=(Widget<>nil)
|
||||||
and (PGtkTypeObject(Widget)^.klass<>nil)
|
and (PGtkTypeObject(Widget)^.klass<>nil)
|
||||||
and gtk_type_is_a(PGtkTypeClass(PGtkTypeObject(Widget)^.klass)^.thetype,
|
and gtk_type_is_a(PGtkTypeClass(PGtkTypeObject(Widget)^.klass)^.thetype,
|
||||||
AType);
|
AType);
|
||||||
|
{$ENDIF}
|
||||||
end;
|
end;
|
||||||
|
|
||||||
{------------------------------------------------------------------------------
|
{------------------------------------------------------------------------------
|
||||||
@ -391,6 +398,7 @@ Procedure AllocGDIColor(DC: hDC; GDIColor: PGDIColor);
|
|||||||
var
|
var
|
||||||
RGBColor : Longint;
|
RGBColor : Longint;
|
||||||
begin
|
begin
|
||||||
|
if DC=0 then ;
|
||||||
if not (cfColorAllocated in GDIColor^.ColorFlags) then begin
|
if not (cfColorAllocated in GDIColor^.ColorFlags) then begin
|
||||||
Case GDIColor^.ColorRef of
|
Case GDIColor^.ColorRef of
|
||||||
clScrollbar..clEndColors:
|
clScrollbar..clEndColors:
|
||||||
@ -4072,6 +4080,9 @@ end;
|
|||||||
{ =============================================================================
|
{ =============================================================================
|
||||||
|
|
||||||
$Log$
|
$Log$
|
||||||
|
Revision 1.174 2003/05/26 21:28:22 mattias
|
||||||
|
fixed absolute file
|
||||||
|
|
||||||
Revision 1.173 2003/05/26 20:05:21 mattias
|
Revision 1.173 2003/05/26 20:05:21 mattias
|
||||||
made compiling gtk2 interface easier
|
made compiling gtk2 interface easier
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user