Commit 144a102b authored by Jukka Pekka's avatar Jukka Pekka Committed by jpekka

Use spin buttons instead of entries.

2002-08-16  Jukka Pekka  <jiivonen@hutcs.cs.hut.fi>

	* dialog-solver.c (cb_dialog_solve_clicked): Use spin buttons
	instead of entries.

	* solver.glade: Related changes.  Some clean up.
parent 83a0c43c
2002-08-16 Jukka Pekka <jiivonen@hutcs.cs.hut.fi>
* dialog-solver.c (cb_dialog_solve_clicked): Use spin buttons
instead of entries.
* solver.glade: Related changes. Some clean up.
2002-08-12 Jody Goldberg <jody@gnome.org>
* Release 1.1.7
......
......@@ -860,27 +860,10 @@ cb_dialog_solve_clicked (GtkWidget *button, SolverState *state)
(GTK_TOGGLE_BUTTON (glade_xml_get_widget
(state->gui, "show_iter_button")));
if (entry_to_int (GTK_ENTRY(state->max_iter_entry),
&param->options.max_iter, TRUE)) {
gnumeric_notice_nonmodal (GTK_WINDOW(state->dialog),
&(state->warning_dialog),
GTK_MESSAGE_ERROR,
_("The value given in 'Max "
"Iterations' is not valid."));
focus_on_entry (GTK_ENTRY(state->max_iter_entry));
return;
}
if (entry_to_int (GTK_ENTRY(state->max_time_entry),
&param->options.max_time_sec, TRUE)) {
gnumeric_notice_nonmodal (GTK_WINDOW(state->dialog),
&(state->warning_dialog),
GTK_MESSAGE_ERROR,
_("The value given in 'Max Time "
"(sec.)' is not valid."));
focus_on_entry (GTK_ENTRY(state->max_time_entry));
return;
}
param->options.max_iter = gtk_spin_button_get_value
(GTK_SPIN_BUTTON (state->max_iter_entry));
param->options.max_time_sec = gtk_spin_button_get_value
(GTK_SPIN_BUTTON (state->max_time_entry));
answer = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (
glade_xml_get_widget (state->gui, "answer")));
......
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment