Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 23 Dec 2002 04:06:04 +0800 (CST)
From:      Kuang-che Wu <kcwu@kcwu.homeip.net>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   ports/46474: Fix build on -current for graphics/gtkfig
Message-ID:  <200212222006.gBMK64jD041997@kcwu.dyndns.org>

next in thread | raw e-mail | index | archive | help

>Number:         46474
>Category:       ports
>Synopsis:       Fix build on -current for graphics/gtkfig
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-ports
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Dec 22 12:10:11 PST 2002
>Closed-Date:
>Last-Modified:
>Originator:     Kuang-che Wu
>Release:        FreeBSD 5.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD m722 5.0-CURRENT FreeBSD 5.0-CURRENT #0: Tue Nov 26 18:00:18 CST 2002 root@m722:/usr/obj/usr/src/sys/M722 i386


	
>Description:
	Fix build on -current for graphics/gtkfig
>How-To-Repeat:
	
>Fix:
diff -urN gtkfig/files/patch-src::line.cc gtkfig.new/files/patch-src::line.cc
--- gtkfig/files/patch-src::line.cc	Thu Jan  1 08:00:00 1970
+++ gtkfig.new/files/patch-src::line.cc	Mon Dec 23 04:04:31 2002
@@ -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 -urN gtkfig/files/patch-src::rightangleline.cc gtkfig.new/files/patch-src::rightangleline.cc
--- gtkfig/files/patch-src::rightangleline.cc	Thu Jan  1 08:00:00 1970
+++ gtkfig.new/files/patch-src::rightangleline.cc	Mon Dec 23 04:04:31 2002
@@ -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 -urN gtkfig/files/patch-src::sheet.cc gtkfig.new/files/patch-src::sheet.cc
--- gtkfig/files/patch-src::sheet.cc	Thu Jan  1 08:00:00 1970
+++ gtkfig.new/files/patch-src::sheet.cc	Mon Dec 23 04:04:31 2002
@@ -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 -urN gtkfig/files/patch-src::simpleline.cc gtkfig.new/files/patch-src::simpleline.cc
--- gtkfig/files/patch-src::simpleline.cc	Thu Jan  1 08:00:00 1970
+++ gtkfig.new/files/patch-src::simpleline.cc	Mon Dec 23 04:04:31 2002
@@ -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 -urN gtkfig/files/patch-src::texteditbox.cc gtkfig.new/files/patch-src::texteditbox.cc
--- gtkfig/files/patch-src::texteditbox.cc	Thu Jan  1 08:00:00 1970
+++ gtkfig.new/files/patch-src::texteditbox.cc	Mon Dec 23 04:04:31 2002
@@ -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>
+ 

	


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-ports" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200212222006.gBMK64jD041997>