[goffice] format selector: don't accept markup formats.



commit 1fb10acd61407706a7283bd1d15fb8fce9fbe1e9
Author: Morten Welinder <terra gnome org>
Date:   Sat May 16 19:16:08 2009 -0400

    format selector: don't accept markup formats.
---
 ChangeLog                   |    5 +++++
 goffice/gtk/go-format-sel.c |    3 +--
 2 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index bc75db0..4360161 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2009-05-16  Morten Welinder  <terra gnome org>
+
+	* goffice/gtk/go-format-sel.c (go_format_sel_set_style_format):
+	Don't accept markup formats.
+
 2009-05-11  Emmanuel Pacaud <emmanuel pacaud lapp in2p3 fr>
 
 	Bump lasem version requirement to 0.1.1. Adapt to the API change.
diff --git a/goffice/gtk/go-format-sel.c b/goffice/gtk/go-format-sel.c
index e4c3b69..e293c11 100644
--- a/goffice/gtk/go-format-sel.c
+++ b/goffice/gtk/go-format-sel.c
@@ -1547,11 +1547,10 @@ go_format_sel_set_style_format (GOFormatSel *gfs,
 
 	g_return_if_fail (GO_IS_FORMAT_SEL (gfs));
 	g_return_if_fail (style_format != NULL);
+	g_return_if_fail (!go_format_is_markup (style_format));
 
 	go_format_ref (style_format);
-
 	go_format_unref (gfs->format.spec);
-
 	gfs->format.spec = style_format;
 
 	study_format (gfs);



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