[gnumeric] add Format->Text menu



commit 3923a9d881df809e5cc4e819e3f8629b9dfcfa9b
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Wed Nov 2 08:24:58 2011 -0600

    add Format->Text menu
    
    2011-11-02 Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* component/Gnumeric-embed.xml.in: add Format->Text menu
    	* src/GNOME_Gnumeric-gtk.xml.in: add Format->Text menu
    	* src/wbc-gtk-actions.c (permanent_actions): add submenus
    	(font_toggle_actions): fix duplicate menu accel

 ChangeLog                       |    7 +++++++
 component/Gnumeric-embed.xml.in |   14 ++++++++++++++
 src/GNOME_Gnumeric-gtk.xml.in   |   14 ++++++++++++++
 src/wbc-gtk-actions.c           |    4 +++-
 4 files changed, 38 insertions(+), 1 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index e7d871d..7b5903b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
+2011-11-02 Andreas J. Guelzow <aguelzow pyrshep ca>
+
+	* component/Gnumeric-embed.xml.in: add Format->Text menu
+	* src/GNOME_Gnumeric-gtk.xml.in: add Format->Text menu
+	* src/wbc-gtk-actions.c (permanent_actions): add submenus
+	(font_toggle_actions): fix duplicate menu accel
+
 2011-11-02  Jean Brefort  <jean brefort normalesup org>
 
 	* src/graph.c (gnm_go_data_vector_eval): erase markup list when changed.
diff --git a/component/Gnumeric-embed.xml.in b/component/Gnumeric-embed.xml.in
index 197ed0e..dac5045 100644
--- a/component/Gnumeric-embed.xml.in
+++ b/component/Gnumeric-embed.xml.in
@@ -148,6 +148,20 @@
       <menuitem action="FormatCellsFitHeight"/>
       <menuitem action="FormatCellsFitWidth"/>
       </menu>
+      <menu name="FormatTextMenu" action="MenuFormatText">
+	<menuitem action="FontBold"/>
+	<menuitem action="FontItalic"/>
+	<menuitem action="FontStrikeThrough"/>
+	<menuitem action="FontSuperscript"/>
+	<menuitem action="FontSubscript"/>
+        <menu name="FormatTextUnderlineMenu" action="MenuFormatTextUnderline">
+	   <menuitem action="FontUnderline"/>
+	   <menuitem action="FontSingleLowUnderline"/>
+	   <menuitem action="FontDoubleUnderline"/>
+	   <menuitem action="FontSingleLowUnderline"/>
+	   <menuitem action="FontDoubleLowUnderline"/>
+        </menu>      
+      </menu>      
       <menu name="FormatColumn" action="MenuFormatColumn">
         <menuitem action="ColumnSize"/>
         <menuitem action="ColumnAutoSize"/>
diff --git a/src/GNOME_Gnumeric-gtk.xml.in b/src/GNOME_Gnumeric-gtk.xml.in
index 46d54fc..1d9d108 100644
--- a/src/GNOME_Gnumeric-gtk.xml.in
+++ b/src/GNOME_Gnumeric-gtk.xml.in
@@ -153,6 +153,20 @@
       <menuitem action="FormatCellsFitHeight"/>
       <menuitem action="FormatCellsFitWidth"/>
       </menu>
+      <menu name="FormatTextMenu" action="MenuFormatText">
+	<menuitem action="FontBold"/>
+	<menuitem action="FontItalic"/>
+	<menuitem action="FontStrikeThrough"/>
+	<menuitem action="FontSuperscript"/>
+	<menuitem action="FontSubscript"/>
+        <menu name="FormatTextUnderlineMenu" action="MenuFormatTextUnderline">
+	   <menuitem action="FontUnderline"/>
+	   <menuitem action="FontSingleLowUnderline"/>
+	   <menuitem action="FontDoubleUnderline"/>
+	   <menuitem action="FontSingleLowUnderline"/>
+	   <menuitem action="FontDoubleLowUnderline"/>
+        </menu>      
+      </menu>      
       <menu name="FormatColumn" action="MenuFormatColumn">
         <menuitem action="ColumnSize"/>
         <menuitem action="ColumnAutoSize"/>
diff --git a/src/wbc-gtk-actions.c b/src/wbc-gtk-actions.c
index fa17a43..397a32b 100644
--- a/src/wbc-gtk-actions.c
+++ b/src/wbc-gtk-actions.c
@@ -2003,6 +2003,8 @@ static GtkActionEntry const permanent_actions[] = {
 		  N_("Func_tion Wrapper") },
 	{ "MenuFormat",		NULL, N_("F_ormat") },
 		{ "MenuFormatCells",		NULL, N_("_Cells") },
+		{ "MenuFormatText",		NULL, N_("_Text") },
+	               { "MenuFormatTextUnderline",  NULL, N_("_Underline") },
 		{ "MenuFormatColumn",		NULL, N_("C_olumn") },
 		{ "MenuFormatRow",		NULL, N_("_Row") },
 		{ "MenuFormatSheet",		NULL, N_("_Sheet") },
@@ -2927,7 +2929,7 @@ static GtkToggleActionEntry const font_toggle_actions[] = {
 		N_("_Single Low Underline"), "<control><shift>l",
 		N_("Single Low Underline"), G_CALLBACK (cb_font_underline_low), FALSE },
 	{ "FontDoubleLowUnderline", NULL,	/* from icon theme */
-		N_("_Double Low Underline"), NULL,
+		N_("Double _Low Underline"), NULL,
 		N_("Double Low Underline"), G_CALLBACK (cb_font_double_underline_low), FALSE },
 	{ "FontStrikeThrough", GTK_STOCK_STRIKETHROUGH,
 		N_("_Strike Through"), "<control>5",



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