[gnumeric] Fix format labels in configurable text importer. [#590257]



commit c9ffd5ad05dce9b034d9e400fa8d586cb38c15b9
Author: Andreas J. Guelzow <aguelzow pyrshep ca>
Date:   Fri Jul 31 02:59:53 2009 -0600

    Fix format labels in configurable text importer. [#590257]
    
    2009-07-31 Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* dialog-stf-format-page.c (cb_popup_menu_extend_format): also
    	  set the format label. Fixes #590257

 NEWS                                 |    1 +
 src/dialogs/ChangeLog                |    5 +++++
 src/dialogs/dialog-stf-format-page.c |    7 +++++++
 3 files changed, 13 insertions(+), 0 deletions(-)
---
diff --git a/NEWS b/NEWS
index 97db51a..b75fa82 100644
--- a/NEWS
+++ b/NEWS
@@ -17,6 +17,7 @@ Andreas:
 	* Fix loading of charts from MS generated ODF files. [#588107]
 	* Add some sheet object support to ODF export.
 	* Export basic charts to ODF.
+	* Fix format labels in configurable text importer. [#590257]
 
 Jody:
 	* Fix col/row resize. [#588297]
diff --git a/src/dialogs/ChangeLog b/src/dialogs/ChangeLog
index beda84f..553ce14 100644
--- a/src/dialogs/ChangeLog
+++ b/src/dialogs/ChangeLog
@@ -1,3 +1,8 @@
+2009-07-31 Andreas J. Guelzow <aguelzow pyrshep ca>
+
+	* dialog-stf-format-page.c (cb_popup_menu_extend_format): also
+	  set the format label. Fixes #590257
+
 2009-07-26  Morten Welinder  <terra gnome org>
 
 	* dialog-stf-preview.c (stf_preview_get_cell_renderer): Please the
diff --git a/src/dialogs/dialog-stf-format-page.c b/src/dialogs/dialog-stf-format-page.c
index 031f361..65c705b 100644
--- a/src/dialogs/dialog-stf-format-page.c
+++ b/src/dialogs/dialog-stf-format-page.c
@@ -290,9 +290,16 @@ cb_popup_menu_extend_format (GtkWidget *widget, gpointer data)
 	for (index++; index < pagedata->format.formats->len; index++) {
 		GOFormat *sf = g_ptr_array_index 
 			(pagedata->format.formats, index);
+		GtkTreeViewColumn* column = 
+			stf_preview_get_column (pagedata->format.renderdata, 
+						index);
+		GtkWidget *w = g_object_get_data (G_OBJECT (column), 
+						  "formatlabel");
 		go_format_unref (sf);
 		g_ptr_array_index (pagedata->format.formats, index) 
 			= go_format_ref (colformat); 
+		gtk_label_set_text (GTK_LABEL (w), 
+				    go_format_sel_format_classification (colformat));
 	}
 
 	format_page_update_preview (data);



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