Ales Katona wrote:
Trying to compile with LCL_PLATFORM="gtk2" it fails on gtkobject.inc
file in lcl/interfaces/gtk.
This patch "fixes" it altho I don't know if it was a bug or something
intentional (perhaps something changed in minor versions of gtk2?)
Yesterday I compiled gtk2 with FPC 2.0.0 without problems. What version
of FPC are you using ?
Marc
Ales
------------------------------------------------------------------------
Index: lcl/interfaces/gtk/gtkobject.inc
===================================================================
--- lcl/interfaces/gtk/gtkobject.inc (revision 7655)
+++ lcl/interfaces/gtk/gtkobject.inc (working copy)
@@ -5951,10 +5951,10 @@
gdk_gc_set_line_attributes(GC,GDIPenWidth,GDK_LINE_ON_OFF_DASH,GDK_CAP_NOT_LAST,GDK_JOIN_MITER);
case GDIPenStyle of
{$IfDef GTK2}
- PS_DASH: SetDashes([#4,#4]);
- PS_DOT: SetDashes([#2,#2]);
- PS_DASHDOT: SetDashes([#4,#2,#2,#2]);
- PS_DASHDOTDOT: SetDashes([#4,#2,#2,#2,#2,#2]);
+ PS_DASH: SetDashes([4,4]);
+ PS_DOT: SetDashes([2,2]);
+ PS_DASHDOT: SetDashes([4,2,2,2]);
+ PS_DASHDOTDOT: SetDashes([4,2,2,2,2,2]);
{$Else}
PS_DASH: SetDashes([4,4]);
PS_DOT: SetDashes([2,2]);
_________________________________________________________________
To unsubscribe: mail [EMAIL PROTECTED] with
"unsubscribe" as the Subject
archives at http://www.lazarus.freepascal.org/mailarchives