removed X-version of buttonbar
[xboard.git] / interface.c
index 05975a9..b5381c9 100644 (file)
@@ -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;
 {
@@ -86,7 +57,8 @@ void GUI_SetAspectRatio(ratio)
     GdkGeometry hints;
     extern GtkWidget *GUI_Window;
 
-    hints.min_aspect = hints.max_aspect = ratio;
+    hints.min_aspect = ratio;
+    hints.max_aspect = ratio;
     
     gtk_window_set_geometry_hints (GTK_WINDOW (GUI_Window),
                                   GTK_WIDGET (GUI_Window),