[gnumeric] Implement rich text in scalar data.
- From: Jean BrÃfort <jbrefort src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] Implement rich text in scalar data.
- Date: Thu, 4 Aug 2011 11:23:40 +0000 (UTC)
commit a2fdedc85b9cc3f3e687a87eeb9c5c10cac200fd
Author: Jean Brefort <jean brefort normalesup org>
Date: Thu Aug 4 13:27:55 2011 +0200
Implement rich text in scalar data.
ChangeLog | 5 +++++
src/graph.c | 11 +++++++++++
2 files changed, 16 insertions(+), 0 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 36d044e..72230b2 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2011-08-04 Jean Brefort <jean brefort normalesup org>
+
+ * src/graph.c (gnm_go_data_scalar_get_markup),
+ (gnm_go_data_scalar_class_init): implement rich text in scalar data.
+
2011-08-04 Andreas J. Guelzow <aguelzow pyrshep ca>
* src/commands.c (cmd_set_comment_apply): enable aprpopriate actions
diff --git a/src/graph.c b/src/graph.c
index 03bcc73..e22dec6 100644
--- a/src/graph.c
+++ b/src/graph.c
@@ -388,6 +388,16 @@ gnm_go_data_scalar_get_str (GODataScalar *dat)
return scalar->val_str;
}
+static PangoAttrList const *
+gnm_go_data_scalar_get_markup (GODataScalar *dat)
+{
+ PangoAttrList const *res = NULL;
+ GOFormat const *fmt = gnm_go_data_preferred_fmt (GO_DATA (dat));
+ if (fmt)
+ res = go_format_get_markup (fmt);
+ return res;
+}
+
static void
gnm_go_data_scalar_class_init (GObjectClass *gobject_klass)
{
@@ -404,6 +414,7 @@ gnm_go_data_scalar_class_init (GObjectClass *gobject_klass)
godata_klass->unserialize = gnm_go_data_unserialize;
scalar_klass->get_value = gnm_go_data_scalar_get_value;
scalar_klass->get_str = gnm_go_data_scalar_get_str;
+ scalar_klass->get_markup = gnm_go_data_scalar_get_markup;
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]