[gnumeric] Enable markup selection in scientific format selector.



commit 1ace7c60a367357ac87ae4cc561122d89cbae6fc
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Tue Aug 23 11:59:06 2011 -0600

    Enable markup selection in scientific format selector.
    
    2011-08-23 Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* dialog-printer-setup.c (do_hf_dt_format_customize): use
    	go_format_sel_new_full specifying TRUE.
    	* dialog-stf-format-page.c (cb_format_clicked): use
    	go_format_sel_new_full specifying TRUE.
    
    2011-08-23  Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* gnm-format-sel.c (gnm_format_sel_new): use go_format_sel_new_full
    	specifying TRUE.

 NEWS                                 |    1 +
 src/dialogs/ChangeLog                |    9 ++++++++-
 src/dialogs/dialog-printer-setup.c   |    2 +-
 src/dialogs/dialog-stf-format-page.c |    3 ++-
 src/widgets/ChangeLog                |    5 +++++
 src/widgets/gnm-format-sel.c         |    2 +-
 6 files changed, 18 insertions(+), 4 deletions(-)
---
diff --git a/NEWS b/NEWS
index 4587e89..b307662 100644
--- a/NEWS
+++ b/NEWS
@@ -12,6 +12,7 @@ Andreas:
 	* Provide progress feedback when generating random numbers.
 	* Add HPFILTER function calculating the Hodrick Prescott Filter.
 	* Fix saving of newlines to xls. [#356711]
+	* Enable markup selection in scientific format selector.
 
 Jean:
 	* Make things build against gtk+-3.0.
diff --git a/src/dialogs/ChangeLog b/src/dialogs/ChangeLog
index 63639ca..a7a426b 100644
--- a/src/dialogs/ChangeLog
+++ b/src/dialogs/ChangeLog
@@ -1,6 +1,13 @@
+2011-08-23 Andreas J. Guelzow <aguelzow pyrshep ca>
+
+	* dialog-printer-setup.c (do_hf_dt_format_customize): use
+	go_format_sel_new_full specifying TRUE.
+	* dialog-stf-format-page.c (cb_format_clicked): use
+	go_format_sel_new_full specifying TRUE.
+
 2011-08-11 Andreas J. Guelzow <aguelzow pyrshep ca>
 
-	* dialog-cell-format-cond.c (dialog_cell_format_style_added): 
+	* dialog-cell-format-cond.c (dialog_cell_format_style_added):
 	fix label string
 
 2011-08-10  Morten Welinder  <terra gnome org>
diff --git a/src/dialogs/dialog-printer-setup.c b/src/dialogs/dialog-printer-setup.c
index a97d52a..344a691 100644
--- a/src/dialogs/dialog-printer-setup.c
+++ b/src/dialogs/dialog-printer-setup.c
@@ -1917,7 +1917,7 @@ do_hf_dt_format_customize (gboolean date, HFCustomizeState *hf_state)
 		gtk_widget_destroy (dialog);
 		return NULL;
 	}
-	hf_dt_state->format_sel = format_sel = go_format_sel_new ();
+	hf_dt_state->format_sel = format_sel = go_format_sel_new_full (TRUE);
 	go_format_sel_set_style_format
 		(GO_FORMAT_SEL (format_sel),
 		 date ? go_format_default_date () : go_format_default_time ());
diff --git a/src/dialogs/dialog-stf-format-page.c b/src/dialogs/dialog-stf-format-page.c
index 7a61902..20b6088 100644
--- a/src/dialogs/dialog-stf-format-page.c
+++ b/src/dialogs/dialog-stf-format-page.c
@@ -209,7 +209,8 @@ cb_format_clicked (GtkButton *widget, gpointer _i)
 		 GTK_STOCK_OK,      GTK_RESPONSE_ACCEPT,
 		 GTK_STOCK_CANCEL,  GTK_RESPONSE_REJECT,
 		 NULL);
-	GOFormatSel *format_selector = GO_FORMAT_SEL (go_format_sel_new ());
+	GOFormatSel *format_selector 
+		= GO_FORMAT_SEL (go_format_sel_new_full (TRUE));
 	GtkWidget *w = gtk_dialog_get_content_area (GTK_DIALOG (dialog));
 	GtkTreeViewColumn* column;
 	GtkWidget *format_label;
diff --git a/src/widgets/ChangeLog b/src/widgets/ChangeLog
index 29ed1a6..64a81a4 100644
--- a/src/widgets/ChangeLog
+++ b/src/widgets/ChangeLog
@@ -1,3 +1,8 @@
+2011-08-23  Andreas J. Guelzow <aguelzow pyrshep ca>
+
+	* gnm-format-sel.c (gnm_format_sel_new): use go_format_sel_new_full
+	specifying TRUE.
+
 2011-08-11  Andreas J. Guelzow <aguelzow pyrshep ca>
 
 	* gnumeric-expr-entry.c (gee_create_tooltip): determine the
diff --git a/src/widgets/gnm-format-sel.c b/src/widgets/gnm-format-sel.c
index 71b55c1..a971a6f 100644
--- a/src/widgets/gnm-format-sel.c
+++ b/src/widgets/gnm-format-sel.c
@@ -57,7 +57,7 @@ cb_generate_preview (GOFormatSel *gfs, PangoAttrList **attrs)
 GtkWidget *
 gnm_format_sel_new (void)
 {
-	GObject *w = g_object_new (GO_TYPE_FORMAT_SEL, NULL);
+	GObject *w = G_OBJECT (go_format_sel_new_full (TRUE));
 	g_signal_connect (w, "generate-preview",
 		G_CALLBACK (cb_generate_preview), NULL);
 	return GTK_WIDGET (w);



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