aboutsummaryrefslogtreecommitdiffstats
path: root/graphics/gtkfig
diff options
context:
space:
mode:
authordirk <dirk@FreeBSD.org>2002-12-23 05:40:34 +0800
committerdirk <dirk@FreeBSD.org>2002-12-23 05:40:34 +0800
commit2123f7f139297dfda8c4aa39c14cdd2df925064c (patch)
treea38796864569fd09b9c9a4013e5baec84b12f5b8 /graphics/gtkfig
parent864d61582ae3a6d659954e2e0bf543b5f3080cae (diff)
downloadfreebsd-ports-gnome-2123f7f139297dfda8c4aa39c14cdd2df925064c.tar.gz
freebsd-ports-gnome-2123f7f139297dfda8c4aa39c14cdd2df925064c.tar.zst
freebsd-ports-gnome-2123f7f139297dfda8c4aa39c14cdd2df925064c.zip
Fix build on -CURRENT.
PR: ports/46474 Submitted by: Kuang-che Wu <kcwu@kcwu.homeip.net>
Diffstat (limited to 'graphics/gtkfig')
-rw-r--r--graphics/gtkfig/files/patch-src::line.cc11
-rw-r--r--graphics/gtkfig/files/patch-src::rightangleline.cc11
-rw-r--r--graphics/gtkfig/files/patch-src::sheet.cc11
-rw-r--r--graphics/gtkfig/files/patch-src::simpleline.cc11
-rw-r--r--graphics/gtkfig/files/patch-src::texteditbox.cc10
5 files changed, 54 insertions, 0 deletions
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 <math.h>
+ #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 <stdlib.h>
++#include <string.h>
+ #include <gtk/gtk.h>
+ #include <gdk/gdkkeysyms.h>
+