From: Arun Persaud Date: Wed, 5 Aug 2009 06:53:16 +0000 (-0700) Subject: removed GUI_DisplayTitle... use DisplayTitle instead X-Git-Tag: gtk-20091122~40 X-Git-Url: http://winboard.nl/cgi-bin?a=commitdiff_plain;h=00f19ab354710c1f41deba65b92af335317b25e5;p=xboard.git removed GUI_DisplayTitle... use DisplayTitle instead easier to keep track of changes in the main branch this way... perhaps change it back to GUI_... at the end --- diff --git a/backend.c b/backend.c index 464335e..49d8b3b 100644 --- a/backend.c +++ b/backend.c @@ -8255,10 +8255,11 @@ Reset(redraw, init) InitChessProgram(&first, startedFromSetupPosition); } - GUI_DisplayTitle(""); + DisplayTitle(""); DisplayMessage("", ""); HistorySet(parseList, backwardMostMove, forwardMostMove, currentMove-1); + return; } void diff --git a/interface.c b/interface.c index 733bf78..b5381c9 100644 --- a/interface.c +++ b/interface.c @@ -50,35 +50,6 @@ GdkPixbuf *load_pixbuf(char *filename,int size) return image; } -void GUI_DisplayTitle(text) - char *text; -{ - char title[MSG_SIZ]; - extern GtkWidget *GUI_Window; - - if (text == NULL) text = ""; - - /* todo - if (appData.titleInWindow) { - i = 0; - XtSetArg(args[i], XtNlabel, text); i++; - XtSetValues(titleWidget, args, i); - } */ - - if (*text != NULLCHAR) { - strcpy(title, text); - } else if (appData.icsActive) { - sprintf(title, "%s: %s", programName, appData.icsHost); - } else if (appData.cmailGameName[0] != NULLCHAR) { - sprintf(title, "%s: %s", programName, "CMail"); - } else if (appData.noChessProgram) { - strcpy(title, programName); - } else { - sprintf(title, "%s: %s", programName, first.tidy); - } - gtk_window_set_title(GTK_WINDOW(GUI_Window),title); -} - void GUI_SetAspectRatio(ratio) int ratio; {