--- np2/x11/gtk/Attic/dialog_midi.c 2003/12/11 15:11:56 1.2 +++ np2/x11/gtk/Attic/dialog_midi.c 2005/03/12 12:36:40 1.4 @@ -10,8 +10,6 @@ * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. - * 3. The name of the author may not be used to endorse or promote products - * derived from this software without specific prior written permission. * * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES @@ -81,7 +79,7 @@ static BYTE mpuopt; static void ok_button_clicked(GtkButton *b, gpointer d) { - gchar *p; + const gchar *p; BOOL enable; UINT update; int i; @@ -165,7 +163,7 @@ dialog_destroy(GtkWidget *w, GtkWidget * static void mpu98_ioport_entry_changed(GtkEditable *e, gpointer d) { - gchar *p; + const gchar *p; BYTE val; UNUSED(d); @@ -180,7 +178,7 @@ mpu98_ioport_entry_changed(GtkEditable * static void mpu98_intr_entry_changed(GtkEditable *e, gpointer d) { - gchar *p; + const gchar *p; BYTE val; UNUSED(d); @@ -268,7 +266,7 @@ create_midi_dialog(void) uninstall_idle_process(); - midi_dialog = gtk_window_new(GTK_WINDOW_DIALOG); + midi_dialog = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_title(GTK_WINDOW(midi_dialog), "MPU-PC98II"); gtk_window_set_position(GTK_WINDOW(midi_dialog),GTK_WIN_POS_CENTER); gtk_window_set_modal(GTK_WINDOW(midi_dialog), TRUE);