gnumeric r17190 - in trunk: . src/dialogs



Author: mortenw
Date: Thu Mar 12 19:21:12 2009
New Revision: 17190
URL: http://svn.gnome.org/viewvc/gnumeric?rev=17190&view=rev

Log:
2009-03-12  Morten Welinder  <terra gnome org>

	* dialog-cell-comment.c (dialog_cell_comment): setup destroy
	handler if the current sheet is deleted.



Modified:
   trunk/NEWS
   trunk/src/dialogs/ChangeLog
   trunk/src/dialogs/dialog-cell-comment.c

Modified: trunk/NEWS
==============================================================================
--- trunk/NEWS	(original)
+++ trunk/NEWS	Thu Mar 12 19:21:12 2009
@@ -9,7 +9,7 @@
 	* Fix printing of rotated text (negative angles or non-default 
 	  alignment). [#574813]
 	* Remove crash potential under goto and cell-format dialog with 
-	  multiple views. Part of [#364291]
+	  multiple views.  [Part of #364291]
 
 Morten:
 	* Fix multihead issues with cell comments.
@@ -20,6 +20,8 @@
 	[#574602]
 	* Fix desktop file to always specify that we take URIs.
 	* Fix sheet-ordering by dragging.  [#574763]
+	* Fix potential crash for cell comment dialog with multiple views.
+	[Part of #364291]
 
 --------------------------------------------------------------------------
 Gnumeric 1.9.4

Modified: trunk/src/dialogs/dialog-cell-comment.c
==============================================================================
--- trunk/src/dialogs/dialog-cell-comment.c	(original)
+++ trunk/src/dialogs/dialog-cell-comment.c	Thu Mar 12 19:21:12 2009
@@ -137,6 +137,9 @@
 	g_object_set_data_full (G_OBJECT (state->dialog),
 		"state", state, (GDestroyNotify) cb_dialog_cell_comment_destroy);
 
+	gnm_dialog_setup_destroy_handlers (GTK_DIALOG (state->dialog), state->wbcg,
+					   GNM_DIALOG_DESTROY_CURRENT_SHEET_REMOVED);
+
 	gnumeric_keyed_dialog (state->wbcg, GTK_WINDOW (state->dialog),
 			       COMMENT_DIALOG_KEY);
 	gtk_widget_show_all (state->dialog);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]