Commit ef1ea53f 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 ditto

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

	* dialog-delete-cells.c (dialog_delete_cells): setup destroy handler
	  if the current sheet is deleted.
	* dialog-hyperlink.c (dhl_init): ditto
	* dialog-paste-special (dialog_paste_special): ditto
	* dialog-merge.c (dialog_merge): ditto



svn path=/trunk/; revision=17215
parent 2f5716fd
2008-03-16 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* dialog-delete-cells.c (dialog_delete_cells): setup destroy handler
if the current sheet is deleted.
* dialog-hyperlink.c (dhl_init): ditto
* dialog-paste-special (dialog_paste_special): ditto
* dialog-merge.c (dialog_merge): ditto
2008-03-15 Andreas J. Guelzow <aguelzow@pyrshep.ca>
* dialog-autofilter.c (dialog_auto_filter): setup destroy handler
......
......@@ -163,6 +163,10 @@ dialog_delete_cells (WBCGtk *wbcg)
g_signal_connect (G_OBJECT (w), "clicked",
G_CALLBACK (cb_delete_cell_cancel_clicked), state);
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, "helpbutton"),
GNUMERIC_HELP_LINK_DELETE_CELLS);
......
......@@ -494,6 +494,10 @@ dhl_init (HyperlinkState *state)
G_CALLBACK (dhl_cb_menu_changed),
state);
gnm_dialog_setup_destroy_handlers (GTK_DIALOG (state->dialog),
state->wbcg,
GNM_DIALOG_DESTROY_CURRENT_SHEET_REMOVED);
return FALSE;
}
......
......@@ -433,6 +433,10 @@ dialog_merge (WBCGtk *wbcg)
"clicked",
G_CALLBACK (cb_merge_cancel_clicked), state);
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_DATA_MERGE);
......
......@@ -239,6 +239,10 @@ dialog_paste_special (WBCGtk *wbcg)
gtk_widget_show_all (vbox);
gtk_widget_grab_focus (first_button);
gnm_dialog_setup_destroy_handlers (GTK_DIALOG (state->dialog),
state->wbcg,
GNM_DIALOG_DESTROY_CURRENT_SHEET_REMOVED);
/* a candidate for merging into attach guru */
g_signal_connect (G_OBJECT (state->dialog), "response",
G_CALLBACK (cb_paste_special_response), state);
......
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