--- np2/x11/gtk/Attic/dialog_config.c 2004/05/22 16:35:08 1.6 +++ np2/x11/gtk/Attic/dialog_config.c 2005/03/12 12:36:40 1.9 @@ -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 @@ -75,9 +73,9 @@ static int rate; static void ok_button_clicked(GtkButton *b, gpointer d) { - gchar *bufp = gtk_entry_get_text(GTK_ENTRY(buffer_entry)); - gchar *base = gtk_entry_get_text(GTK_ENTRY(baseclock_entry)); - gchar *multp = gtk_entry_get_text(GTK_ENTRY(clockmult_entry)); + const gchar *bufp = gtk_entry_get_text(GTK_ENTRY(buffer_entry)); + const gchar *base = gtk_entry_get_text(GTK_ENTRY(baseclock_entry)); + const gchar *multp = gtk_entry_get_text(GTK_ENTRY(clockmult_entry)); gint resume = GTK_TOGGLE_BUTTON(resume_checkbutton)->active; #if defined(GCC_CPU_ARCH_IA32) gint disablemmx = GTK_TOGGLE_BUTTON(disablemmx_checkbutton)->active; @@ -202,8 +200,8 @@ rate_radiobutton_clicked(GtkButton *b, g static void clock_changed(GtkEditable *e, gpointer d) { - gchar *base = gtk_entry_get_text(GTK_ENTRY(baseclock_entry)); - gchar *multp = gtk_entry_get_text(GTK_ENTRY(clockmult_entry)); + const gchar *base = gtk_entry_get_text(GTK_ENTRY(baseclock_entry)); + const gchar *multp = gtk_entry_get_text(GTK_ENTRY(clockmult_entry)); guint mult = milstr_solveINT(multp); gchar buf[80]; gint clock; @@ -256,7 +254,7 @@ create_configure_dialog(void) uninstall_idle_process(); - config_dialog = gtk_window_new(GTK_WINDOW_DIALOG); + config_dialog = gtk_window_new(GTK_WINDOW_TOPLEVEL); gtk_window_set_title(GTK_WINDOW(config_dialog), "Configure"); gtk_window_set_position(GTK_WINDOW(config_dialog), GTK_WIN_POS_CENTER); gtk_window_set_modal(GTK_WINDOW(config_dialog), TRUE); @@ -486,6 +484,9 @@ create_configure_dialog(void) if (np2oscfg.resume) { gtk_signal_emit_by_name(GTK_OBJECT(resume_checkbutton), "clicked"); } +#if defined(CPUCORE_IA32) + gtk_widget_set_sensitive(resume_checkbutton, FALSE); +#endif #if defined(GCC_CPU_ARCH_IA32) /* Disable MMX */