Commit 77ccd622 authored by Andreas J. Guelzow's avatar Andreas J. Guelzow Committed by Andreas J. Guelzow
Browse files

destroy outdated warnings dialog (random_tool_ok_clicked_cb) : destroy

2002-01-27  Andreas J. Guelzow <aguelzow@taliesin.ca>

	* dialog-analysis-tools.c (sampling_tool_ok_clicked_cb) :
	  destroy outdated warnings dialog
	(random_tool_ok_clicked_cb) : destroy outdated warnings dialog and
	  remove accel_group from window before unreferenceing it.
	(histogram_tool_update_sensitivity_cb) : remove reference to apply
	  button
parent 70f010f5
......@@ -6,6 +6,8 @@ Andreas:
* Make the autosave dialog non-modal, port to gnome2
* Make the analysis tools warnings non-modal
* Make the autocorrect dialog non-modal, port to gnome2
* Fix gnome2 specific random tool crash
* Destroy outadated dialogs
Jody:
* Initial port to gnome2.
......
......@@ -34,7 +34,7 @@ to features that already work.
ODDLPRICE, ODDLYIELD, VDB, YIELDDISC, and YIELDMAT.
+ Fix or finish the following functions :
- COUPDAYS, ODDFPRICE, YIELD, and DURATION
- ODDFPRICE, YIELD, and DURATION
* Data Analysis Tools
- Exponential smoothing
......
2002-01-27 Andreas J. Guelzow <aguelzow@taliesin.ca>
* dialog-analysis-tools.c (sampling_tool_ok_clicked_cb) :
destroy outdated warnings dialog
(random_tool_ok_clicked_cb) : destroy outdated warnings dialog and
remove accel_group from window before unreferenceing it.
(histogram_tool_update_sensitivity_cb) : remove reference to apply
button
2002-01-27 Andreas J. Guelzow <aguelzow@taliesin.ca>
* dialog-goal-seek.c (cb_dialog_apply_clicked) : make sure
......
......@@ -1987,6 +1987,9 @@ sampling_tool_ok_clicked_cb (GtkWidget *button, SamplingState *state)
gint size, number;
gint periodic, err;
if (state->warning_dialog != NULL)
gtk_widget_destroy (state->warning_dialog);
input = gnumeric_expr_entry_parse_to_list (
GNUMERIC_EXPR_ENTRY (state->input_entry), state->sheet);
......@@ -2464,6 +2467,9 @@ random_tool_ok_clicked_cb (GtkWidget *button, RandomToolState *state)
gint vars, count, err;
random_tool_t param;
if (state->warning_dialog != NULL)
gtk_widget_destroy (state->warning_dialog);
parse_output ((GenericToolState *)state, &dao);
err = entry_to_int (GTK_ENTRY (state->vars_entry), &vars, FALSE);
......@@ -2511,6 +2517,8 @@ random_tool_ok_clicked_cb (GtkWidget *button, RandomToolState *state)
case 0:
if (button == state->ok_button) {
if (state->distribution_accel) {
gtk_window_remove_accel_group (GTK_WINDOW (state->dialog),
state->distribution_accel);
gtk_accel_group_unref (state->distribution_accel);
state->distribution_accel = NULL;
}
......@@ -3498,8 +3506,6 @@ histogram_tool_update_sensitivity_cb (GtkWidget *dummy, HistogramToolState *stat
if (output_range != NULL) value_release (output_range);
ready = input_ready && bin_ready && output_ready;
if (state->apply_button != NULL)
gtk_widget_set_sensitive (state->apply_button, ready);
gtk_widget_set_sensitive (state->ok_button, ready);
return;
}
......
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