Commit 689545d7 authored by Jody Goldberg's avatar Jody Goldberg Committed by Jody Goldberg

Nat having a guru in place is not an error.


2000-07-04  Jody Goldberg <jgoldberg@home.com>

	* src/workbook-edit.c (workbook_edit_detach_guru) : Nat having a
	  guru in place is not an error.
parent 570b81e3
2000-07-04 Jody Goldberg <jgoldberg@home.com>
* src/workbook-edit.c (workbook_edit_detach_guru) : Nat having a
guru in place is not an error.
* src/clipboard.c (x_selection_received) : No need to sheet_update or
recalc. cmd_paste_copy handles that.
......
2000-07-04 Jody Goldberg <jgoldberg@home.com>
* src/workbook-edit.c (workbook_edit_detach_guru) : Nat having a
guru in place is not an error.
* src/clipboard.c (x_selection_received) : No need to sheet_update or
recalc. cmd_paste_copy handles that.
......
2000-07-04 Jody Goldberg <jgoldberg@home.com>
* src/workbook-edit.c (workbook_edit_detach_guru) : Nat having a
guru in place is not an error.
* src/clipboard.c (x_selection_received) : No need to sheet_update or
recalc. cmd_paste_copy handles that.
......
2000-07-04 Jody Goldberg <jgoldberg@home.com>
* src/workbook-edit.c (workbook_edit_detach_guru) : Nat having a
guru in place is not an error.
* src/clipboard.c (x_selection_received) : No need to sheet_update or
recalc. cmd_paste_copy handles that.
......
2000-07-04 Jody Goldberg <jgoldberg@home.com>
* src/workbook-edit.c (workbook_edit_detach_guru) : Nat having a
guru in place is not an error.
* src/clipboard.c (x_selection_received) : No need to sheet_update or
recalc. cmd_paste_copy handles that.
......
2000-07-04 Jody Goldberg <jgoldberg@home.com>
* src/workbook-edit.c (workbook_edit_detach_guru) : Nat having a
guru in place is not an error.
* src/clipboard.c (x_selection_received) : No need to sheet_update or
recalc. cmd_paste_copy handles that.
......
2000-07-04 Jody Goldberg <jgoldberg@home.com>
* src/workbook-edit.c (workbook_edit_detach_guru) : Nat having a
guru in place is not an error.
* src/clipboard.c (x_selection_received) : No need to sheet_update or
recalc. cmd_paste_copy handles that.
......
......@@ -2,6 +2,10 @@
* dialog-function-wizard.c (formula_guru_set_rolled_state) : Functions
with no args can not be rolled.
(cb_formula_guru_clicked) : Disengage the guru before finishing the
edit. Then manually destroy the dialog. If we do not do this the
act of finished editing destroy the guru too early, and we ignore
the input.
* names.glade : Use GtkDialog rather than GnomeDialog
* dialog-define-names.c (name_guru_init) : Use
......
......@@ -366,8 +366,11 @@ cb_formula_guru_clicked (GtkWidget *button, FormulaGuruState *state)
return;
}
/* Accept for OK, reject for cancel */
/* Detach BEFORE we finish editing */
workbook_edit_detach_guru (state->wb);
workbook_finish_editing (state->wb, button == state->ok_button);
gtk_widget_destroy (state->dialog);
}
static void
......
......@@ -366,8 +366,11 @@ cb_formula_guru_clicked (GtkWidget *button, FormulaGuruState *state)
return;
}
/* Accept for OK, reject for cancel */
/* Detach BEFORE we finish editing */
workbook_edit_detach_guru (state->wb);
workbook_finish_editing (state->wb, button == state->ok_button);
gtk_widget_destroy (state->dialog);
}
static void
......
......@@ -325,7 +325,9 @@ workbook_edit_detach_guru (Workbook *wb)
{
g_return_if_fail (wb != NULL);
g_return_if_fail (wb->priv != NULL);
g_return_if_fail (wb->priv->edit_line.guru != NULL);
if (wb->priv->edit_line.guru == NULL)
return;
workbook_set_entry (wb, NULL);
wb->priv->edit_line.guru = NULL;
......
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