From ca58e9480c5da5652159c45ad576b947ac5618ff Mon Sep 17 00:00:00 2001 From: Gregory John Casamento Date: Thu, 9 Dec 2021 01:31:19 -0500 Subject: [PATCH] Fix the rest of the issues mentioned in savannah bug#25310 --- Palettes/0Menus/GormMenuEditor.m | 4 ++++ Palettes/0Menus/GormMenuInspectors.m | 10 +++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/Palettes/0Menus/GormMenuEditor.m b/Palettes/0Menus/GormMenuEditor.m index 1dccc443..a581dcc5 100644 --- a/Palettes/0Menus/GormMenuEditor.m +++ b/Palettes/0Menus/GormMenuEditor.m @@ -57,6 +57,7 @@ NSPasteboard *dragPb; NSString *dragType; } + - (BOOL) acceptsTypeFromArray: (NSArray*)types; - (BOOL) activate; - (id) initWithObject: (id)anObject inDocument: (id)aDocument; @@ -78,6 +79,7 @@ - (void) validateEditing; - (BOOL) wantsSelection; - (NSWindow*) window; + @end @interface GormMenuEditor (Private) @@ -1104,6 +1106,8 @@ static BOOL done_editing; [[editField currentEditor] resignFirstResponder]; [self setNeedsDisplay: YES]; + [[self document] touch]; + return e; } @end diff --git a/Palettes/0Menus/GormMenuInspectors.m b/Palettes/0Menus/GormMenuInspectors.m index d466fe86..bd4741cf 100644 --- a/Palettes/0Menus/GormMenuInspectors.m +++ b/Palettes/0Menus/GormMenuInspectors.m @@ -179,13 +179,17 @@ - (id) init { if ([super init] == nil) - return nil; - - if ([NSBundle loadNibNamed: @"GormMenuItemAttributesInspector" owner: self] == NO) + { + return nil; + } + + if ([NSBundle loadNibNamed: @"GormMenuItemAttributesInspector" + owner: self] == NO) { NSLog(@"Could not gorm GormMenuItemAttributesInspector"); return nil; } + return self; }