From 2123f7f139297dfda8c4aa39c14cdd2df925064c Mon Sep 17 00:00:00 2001 From: dirk Date: Sun, 22 Dec 2002 21:40:34 +0000 Subject: Fix build on -CURRENT. PR: ports/46474 Submitted by: Kuang-che Wu --- graphics/gtkfig/files/patch-src::line.cc | 11 +++++++++++ graphics/gtkfig/files/patch-src::rightangleline.cc | 11 +++++++++++ graphics/gtkfig/files/patch-src::sheet.cc | 11 +++++++++++ graphics/gtkfig/files/patch-src::simpleline.cc | 11 +++++++++++ graphics/gtkfig/files/patch-src::texteditbox.cc | 10 ++++++++++ 5 files changed, 54 insertions(+) create mode 100644 graphics/gtkfig/files/patch-src::line.cc create mode 100644 graphics/gtkfig/files/patch-src::rightangleline.cc create mode 100644 graphics/gtkfig/files/patch-src::sheet.cc create mode 100644 graphics/gtkfig/files/patch-src::simpleline.cc create mode 100644 graphics/gtkfig/files/patch-src::texteditbox.cc (limited to 'graphics') diff --git a/graphics/gtkfig/files/patch-src::line.cc b/graphics/gtkfig/files/patch-src::line.cc new file mode 100644 index 000000000000..f77efb5c3c8d --- /dev/null +++ b/graphics/gtkfig/files/patch-src::line.cc @@ -0,0 +1,11 @@ +--- src/line.cc.orig Mon Dec 23 03:58:33 2002 ++++ src/line.cc Mon Dec 23 03:58:44 2002 +@@ -14,7 +14,7 @@ + // he/she clicked on the line. + #define SELECT_DISTANCE 4 + +-TCADLine::TCADLine(TCADSheet *Sheet,int x=0,int y=0) : TCADObject(Sheet) ++TCADLine::TCADLine(TCADSheet *Sheet,int x,int y) : TCADObject(Sheet) + { + First.x = x; + First.y = y; diff --git a/graphics/gtkfig/files/patch-src::rightangleline.cc b/graphics/gtkfig/files/patch-src::rightangleline.cc new file mode 100644 index 000000000000..d3ab995320c5 --- /dev/null +++ b/graphics/gtkfig/files/patch-src::rightangleline.cc @@ -0,0 +1,11 @@ +--- src/rightangleline.cc.orig Mon Dec 23 03:59:17 2002 ++++ src/rightangleline.cc Mon Dec 23 03:59:30 2002 +@@ -283,7 +283,7 @@ + } + } + +-TCADRightAngleLine::TCADRightAngleLine(TCADSheet *Sheet,int x=0,int y=0) : TCADLine(Sheet,x,y) ++TCADRightAngleLine::TCADRightAngleLine(TCADSheet *Sheet,int x,int y) : TCADLine(Sheet,x,y) + { + int i; + diff --git a/graphics/gtkfig/files/patch-src::sheet.cc b/graphics/gtkfig/files/patch-src::sheet.cc new file mode 100644 index 000000000000..a8e12d1a2e0c --- /dev/null +++ b/graphics/gtkfig/files/patch-src::sheet.cc @@ -0,0 +1,11 @@ +--- src/sheet.cc.orig Mon Dec 23 04:01:02 2002 ++++ src/sheet.cc Mon Dec 23 04:01:05 2002 +@@ -1142,7 +1142,7 @@ + if (!Obj->HasText()) return; + + OldText = ((TCADTextObject *)Obj)->GetText(); +- TextEditBox(OldText,NULL,EditTextCallback,this); ++ TextEditBox(OldText,NULL,(void(*)(char*,void*))EditTextCallback,this); + free(OldText); + } + diff --git a/graphics/gtkfig/files/patch-src::simpleline.cc b/graphics/gtkfig/files/patch-src::simpleline.cc new file mode 100644 index 000000000000..60a7e7d6b3f0 --- /dev/null +++ b/graphics/gtkfig/files/patch-src::simpleline.cc @@ -0,0 +1,11 @@ +--- src/simpleline.cc.orig Mon Dec 23 04:01:18 2002 ++++ src/simpleline.cc Mon Dec 23 04:01:41 2002 +@@ -8,7 +8,7 @@ + #include + #include "simpleline.h" + +-TCADSimpleLine::TCADSimpleLine(TCADSheet *Sheet,int x=0,int y=0) : TCADLine(Sheet,x,y) ++TCADSimpleLine::TCADSimpleLine(TCADSheet *Sheet,int x,int y) : TCADLine(Sheet,x,y) + { + RecomputeEncapRect(); + RecomputeRefRect(); diff --git a/graphics/gtkfig/files/patch-src::texteditbox.cc b/graphics/gtkfig/files/patch-src::texteditbox.cc new file mode 100644 index 000000000000..f8cc5a0945dd --- /dev/null +++ b/graphics/gtkfig/files/patch-src::texteditbox.cc @@ -0,0 +1,10 @@ +--- src/texteditbox.cc.orig Mon Dec 23 04:02:07 2002 ++++ src/texteditbox.cc Mon Dec 23 04:02:22 2002 +@@ -5,6 +5,7 @@ + \********************************/ + + #include ++#include + #include + #include + -- cgit