[gnumeric] Reduce the size of sub and superscripts (75%)
- From: Andreas J. Guelzow <guelzow src gnome org>
- To: svn-commits-list gnome org
- Subject: [gnumeric] Reduce the size of sub and superscripts (75%)
- Date: Fri, 29 May 2009 03:59:42 -0400 (EDT)
commit a5f7baf039db3bd870621751eb0f78becd7f595a
Author: Andreas J. Guelzow <aguelzow pyrshep ca>
Date: Fri May 29 01:58:57 2009 -0600
Reduce the size of sub and superscripts (75%)
2009-05-29 Andreas J. Guelzow <aguelzow pyrshep ca>
* src/wbc-gtk-actions.c (toggle_font_attr): when we toggle sub or
subscript we should also toggle the size.
---
ChangeLog | 5 +++++
src/wbc-gtk-actions.c | 4 ++++
2 files changed, 9 insertions(+), 0 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index 6754410..03441f7 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2009-05-29 Andreas J. Guelzow <aguelzow pyrshep ca>
+ * src/wbc-gtk-actions.c (toggle_font_attr): when we toggle sub or
+ subscript we should also toggle the size.
+
+2009-05-29 Andreas J. Guelzow <aguelzow pyrshep ca>
+
* src/GNOME_Gnumeric-gtk.xml.in: add super and subscript buttons
to format toolbar. Remove Label button from the object toolbar
since it is functionally equivalent to the rectangle button.
diff --git a/src/wbc-gtk-actions.c b/src/wbc-gtk-actions.c
index cbd11b4..0444300 100644
--- a/src/wbc-gtk-actions.c
+++ b/src/wbc-gtk-actions.c
@@ -1359,6 +1359,10 @@ toggle_font_attr (WBCGtk *wbcg, GtkToggleAction *act,
attr = pango_attr_strikethrough_new (val);
break;
case MSTYLE_FONT_SCRIPT:
+ if (val == GO_FONT_SCRIPT_STANDARD)
+ wbcg_edit_add_markup (wbcg, pango_attr_scale_new (1.));
+ else
+ wbcg_edit_add_markup (wbcg, pango_attr_scale_new (0.75));
attr = pango_attr_rise_new (5000 * val);
break;
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]