Commit 38c0fd16 authored by Andreas J. Guelzow 's avatar Andreas J. Guelzow Committed by Andreas J. Guelzow

setup destroy handler if the current sheet is deleted. ditto ditto

2008-03-15  Andreas J. Guelzow <aguelzow@pyrshep.ca>

	* dialog-autofilter.c (dialog_auto_filter): setup destroy handler
	  if the current sheet is deleted.
	* dialog-cell-sort.c (dialog_init): ditto
	* dialog-printer-setup.c (dialog_printer_setup): ditto



svn path=/trunk/; revision=17213
parent 7ddda879
2008-03-15 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* dialog-autofilter.c (dialog_auto_filter): setup destroy handler
if the current sheet is deleted.
* dialog-cell-sort.c (dialog_init): ditto
* dialog-printer-setup.c (dialog_printer_setup): ditto
2008-03-15 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* dialog-row-height.c (dialog_row_height): setup destroy handler
......
......@@ -311,6 +311,10 @@ dialog_auto_filter (WBCGtk *wbcg,
is_expr ? GNUMERIC_HELP_LINK_AUTOFILTER_CUSTOM :
GNUMERIC_HELP_LINK_AUTOFILTER_TOP_TEN);
gnm_dialog_setup_destroy_handlers (GTK_DIALOG (state->dialog),
state->wbcg,
GNM_DIALOG_DESTROY_CURRENT_SHEET_REMOVED);
wbc_gtk_attach_guru (state->wbcg, state->dialog);
g_object_set_data_full (G_OBJECT (state->dialog),
"state", state, (GDestroyNotify)cb_autofilter_destroy);
......
......@@ -1050,6 +1050,10 @@ dialog_init (SortFlowState *state)
"clicked",
G_CALLBACK (cb_dialog_cancel_clicked), state);
gnm_dialog_setup_destroy_handlers (GTK_DIALOG (state->dialog),
state->wbcg,
GNM_DIALOG_DESTROY_CURRENT_SHEET_REMOVED);
/* Finish dialog signals */
wbc_gtk_attach_guru (state->wbcg, state->dialog);
g_object_set_data_full (G_OBJECT (state->dialog),
......
......@@ -2808,6 +2808,10 @@ dialog_printer_setup (WBCGtk *wbcg, Sheet *sheet)
if (!state)
return;
gnm_dialog_setup_destroy_handlers (GTK_DIALOG (state->dialog),
state->wbcg,
GNM_DIALOG_DESTROY_CURRENT_SHEET_REMOVED);
gnumeric_init_help_button (
glade_xml_get_widget (state->gui, "help_button"),
GNUMERIC_HELP_LINK_PRINTER_SETUP_GENERAL);
......
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