This is a patch file for "aumix" 2.9.1. This change does two things: (a) It forces "aumix" to start up with a centered window, if the program is executed in interactive mode (and under X Win- dows). (b) It increases the default "aumix" window width. --- aumix-2.9.1.old/src/gtk.c +++ aumix-2.9.1/src/gtk.c @@ -391,6 +391,21 @@ gtk_widget_realize(window); icon_pixmap = gdk_pixmap_create_from_xpm_d(window->window, &bitmap, &style->bg[GTK_STATE_NORMAL], aumix_xpm); gdk_window_set_icon(window->window, NULL, icon_pixmap, bitmap); + + { + GtkRequisition req; + gint width; + gint height; + + gtk_widget_size_request (window, &req); + width = req.width + 150; + height = req.height; + + gtk_widget_set_usize (window, width, height); + gtk_window_set_position + (GTK_WINDOW(window), GTK_WIN_POS_CENTER); + } + gtk_widget_show(window); signal(SIGALRM, AumixSignalHandler); alarm(REFRESH_PERIOD);