From: H.G.Muller Date: Tue, 5 Apr 2016 21:40:32 +0000 (+0200) Subject: Suppress menubar text clipping on resize in OSX App X-Git-Url: http://winboard.nl/cgi-bin?p=xboard.git;a=commitdiff_plain;h=1bcd7e1d10ede3c8116f5b2009283875321a8d48 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. --- 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