From 1bcd7e1d10ede3c8116f5b2009283875321a8d48 Mon Sep 17 00:00:00 2001
From: H.G.Muller <hgm@hgm-xboard.(none)>
Date: Tue, 5 Apr 2016 23:40:32 +0200
Subject: [PATCH] Suppress menubar text clipping on resize in OSX App

The menu bar is not in the window in OSX, so the menu texts should
always remain full length.
---
 gtk/xboard.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/gtk/xboard.c b/gtk/xboard.c
index 3cac488..c68d85f 100644
--- a/gtk/xboard.c
+++ b/gtk/xboard.c
@@ -1704,6 +1704,7 @@ ReSize (WindowPlacement *wp)
 	if(!strchr(appData.boardSize, ',')) {
 	    ASSIGN(appData.boardSize, sizeDefaults[h].name);
 	}
+#ifndef OSXAPP
 	if(sizeDefaults[h].tinyLayout != tinyLayout) { // alter clipping of menu names to conform to board width
 	    int clip = (tinyLayout = sizeDefaults[h].tinyLayout) + 1;
 	    char text[MSG_SIZ];
@@ -1713,6 +1714,7 @@ ReSize (WindowPlacement *wp)
 		gtk_menu_item_set_label((GtkMenuItem *) mainOptions[h].handle, text);
 	    }
 	}
+#endif
 	if(sqx != squareSize && !first) {
 	    squareSize = sqx; // adopt new square size
 	    CreatePNGPieces(); // make newly scaled pieces
-- 
1.7.0.4