From 60b2386adb1e79c6693397dc57e15c9465975d17 Mon Sep 17 00:00:00 2001 From: sebastia Date: Fri, 13 Jul 2012 15:40:43 +0000 Subject: [PATCH] Make the GNUstep GUI builder Gorm usable again. OK aja@ --- x11/gnustep/gorm/Makefile | 3 +- .../patches/patch-GormCore_GormDocument_m | 21 +++++++++ .../patches/patch-GormLib_IBObjectAdditions_m | 47 +++++++++++++++++++ 3 files changed, 70 insertions(+), 1 deletion(-) create mode 100644 x11/gnustep/gorm/patches/patch-GormCore_GormDocument_m create mode 100644 x11/gnustep/gorm/patches/patch-GormLib_IBObjectAdditions_m diff --git a/x11/gnustep/gorm/Makefile b/x11/gnustep/gorm/Makefile index f0006b5b0b0..b15266d2b96 100644 --- a/x11/gnustep/gorm/Makefile +++ b/x11/gnustep/gorm/Makefile @@ -1,8 +1,9 @@ -# $OpenBSD: Makefile,v 1.7 2012/07/08 13:41:52 sebastia Exp $ +# $OpenBSD: Makefile,v 1.8 2012/07/13 15:40:43 sebastia Exp $ COMMENT= GNUstep graphical object relationship modeller DISTNAME= gorm-1.2.18 +REVISION = 0 HOMEPAGE= http://www.gnustep.org/experience/Gorm.html MASTER_SITES= ${MASTER_SITE_GNUSTEP}dev-apps/ diff --git a/x11/gnustep/gorm/patches/patch-GormCore_GormDocument_m b/x11/gnustep/gorm/patches/patch-GormCore_GormDocument_m new file mode 100644 index 00000000000..f6e927311b6 --- /dev/null +++ b/x11/gnustep/gorm/patches/patch-GormCore_GormDocument_m @@ -0,0 +1,21 @@ +$OpenBSD: patch-GormCore_GormDocument_m,v 1.1 2012/07/13 15:40:43 sebastia Exp $ + +Fix editing .gorm's with many views, i.e. AddressManager +or Fisicalab + +--- GormCore/GormDocument.m.orig Tue Jun 19 06:47:30 2012 ++++ GormCore/GormDocument.m Thu Jul 12 12:34:16 2012 +@@ -1915,13 +1915,6 @@ static void _real_close(GormDocument *self, + { + [[self openEditorForObject: obj] activate]; + } +- else if([obj isKindOfClass: [NSView class]]) +- { +- if([obj superview] == nil) +- { +- [[self openEditorForObject: obj] activate]; +- } +- } + } + } + diff --git a/x11/gnustep/gorm/patches/patch-GormLib_IBObjectAdditions_m b/x11/gnustep/gorm/patches/patch-GormLib_IBObjectAdditions_m new file mode 100644 index 00000000000..5881a4c8a3f --- /dev/null +++ b/x11/gnustep/gorm/patches/patch-GormLib_IBObjectAdditions_m @@ -0,0 +1,47 @@ +$OpenBSD: patch-GormLib_IBObjectAdditions_m,v 1.1 2012/07/13 15:40:43 sebastia Exp $ + +Fix the Connection Inspector + +--- GormLib/IBObjectAdditions.m.orig Tue Jul 10 20:39:09 2012 ++++ GormLib/IBObjectAdditions.m Tue Jul 10 20:39:24 2012 +@@ -71,40 +71,5 @@ + return nil; + } + +-- (NSImage *) imageForViewer +-{ +- return nil; +-} +- +-- (NSString*) connectInspectorClassName +-{ +- return nil; +-} +- +-- (NSString*) sizeInspectorClassName +-{ +- return nil; +-} +- +-- (NSString*) helpInspectorClassName +-{ +- return nil; +-} +- +-- (NSString*) classInspectorClassName +-{ +- return nil; +-} +- +-- (NSString*) inspectorClassName; +-{ +- return nil; +-} +- +-- (NSString*) editorClassName; +-{ +- return nil; +-} +- + @end +