[gnumeric] Ensure we have sub- and sperscript icons. [#639086]



commit bb1e9c711ff1c4a22c9204c8c98af61828edad69
Author: Andreas J Guelzow <aguelzow pyrshep ca>
Date:   Sun Jan 9 15:48:35 2011 -0700

    Ensure we have sub- and sperscript icons. [#639086]
    
    2011-01-09  Andreas J. Guelzow <aguelzow pyrshep ca>
    
    	* src/pixmaps/gnm_subscript_16.png: new
    	* src/pixmaps/gnm_subscript_24.png: new
    	* src/pixmaps/gnm_superscript_16.png: new
    	* src/pixmaps/gnm_superscript_24.png: new
    	* src/pixmaps/Makefile.am: add the above files
    	* src/wbc-gtk.c (wbc_gtk_setup_icons): set up Gnumeric_Superscript
    	  and Gnumeric_Subscript icons
    	* src/wbc-gtk-actions.c (font_toggle_actions) use Gnumeric_Superscript
    	  and Gnumeric_Subscript icons

 ChangeLog                          |   12 ++++++++++++
 NEWS                               |    1 +
 src/pixmaps/Makefile.am            |    6 ++++++
 src/pixmaps/gnm_subscript_16.png   |  Bin 0 -> 549 bytes
 src/pixmaps/gnm_subscript_24.png   |  Bin 0 -> 783 bytes
 src/pixmaps/gnm_superscript_16.png |  Bin 0 -> 557 bytes
 src/pixmaps/gnm_superscript_24.png |  Bin 0 -> 792 bytes
 src/wbc-gtk-actions.c              |    4 ++--
 src/wbc-gtk.c                      |    2 ++
 9 files changed, 23 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 1b75bf4..5655dfe 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,17 @@
 2011-01-09  Andreas J. Guelzow <aguelzow pyrshep ca>
 
+	* src/pixmaps/gnm_subscript_16.png: new
+	* src/pixmaps/gnm_subscript_24.png: new
+	* src/pixmaps/gnm_superscript_16.png: new
+	* src/pixmaps/gnm_superscript_24.png: new
+	* src/pixmaps/Makefile.am: add the above files
+	* src/wbc-gtk.c (wbc_gtk_setup_icons): set up Gnumeric_Superscript
+	  and Gnumeric_Subscript icons
+	* src/wbc-gtk-actions.c (font_toggle_actions) use Gnumeric_Superscript
+	  and Gnumeric_Subscript icons
+
+2011-01-09  Andreas J. Guelzow <aguelzow pyrshep ca>
+
 	* src/sort.c (sort_compare_cells): add argument and use it to
 	  decide whether to use the cacheing version of value_compare
 	(sort_compare_sets): add argument and change all callers
diff --git a/NEWS b/NEWS
index 4fcee28..fa1783e 100644
--- a/NEWS
+++ b/NEWS
@@ -11,6 +11,7 @@ Andreas:
 	* Make the row and column headers and selection match the theme better.
 	  [#639019]
 	* Fix locale specific sorting. [#638874]
+	* Ensure we have sub- and sperscript icons. [#639086]
 
 Jean:
 	* Only disable the formula bar when a chart sheet is selected. [#636031]
diff --git a/src/pixmaps/Makefile.am b/src/pixmaps/Makefile.am
index 5003639..12c7c6b 100644
--- a/src/pixmaps/Makefile.am
+++ b/src/pixmaps/Makefile.am
@@ -46,6 +46,8 @@ IMAGES = 							\
 	expr_entry.png		\
 	\
 	gnumeric_splash_1.4.png	\
+	gnm_subscript_16.png		gnm_subscript_24.png	\
+	gnm_superscript_16.png		gnm_superscript_24.png	\
 	unknown_image.png	\
 	\
 	object_arrow_24.png 	\
@@ -214,6 +216,10 @@ VARIABLES = 		 									\
 	gnm_money				$(srcdir)/format_money_24.png			\
 	gnm_percent				$(srcdir)/format_percent_24.png			\
 	gnm_thousand				$(srcdir)/thousands.xpm				\
+	gnm_subscript_16			$(srcdir)/gnm_subscript_16.png			\
+	gnm_subscript_24			$(srcdir)/gnm_subscript_24.png			\
+	gnm_superscript_16			$(srcdir)/gnm_superscript_16.png		\
+	gnm_superscript_24			$(srcdir)/gnm_superscript_24.png		\
 	\
 	gnm_auto				$(srcdir)/auto-sum.xpm				\
 	gnm_equal				$(srcdir)/equal-sign.xpm			\
diff --git a/src/pixmaps/gnm_subscript_16.png b/src/pixmaps/gnm_subscript_16.png
new file mode 100644
index 0000000..7f9e0f3
Binary files /dev/null and b/src/pixmaps/gnm_subscript_16.png differ
diff --git a/src/pixmaps/gnm_subscript_24.png b/src/pixmaps/gnm_subscript_24.png
new file mode 100644
index 0000000..67b0cbf
Binary files /dev/null and b/src/pixmaps/gnm_subscript_24.png differ
diff --git a/src/pixmaps/gnm_superscript_16.png b/src/pixmaps/gnm_superscript_16.png
new file mode 100644
index 0000000..1c20def
Binary files /dev/null and b/src/pixmaps/gnm_superscript_16.png differ
diff --git a/src/pixmaps/gnm_superscript_24.png b/src/pixmaps/gnm_superscript_24.png
new file mode 100644
index 0000000..1d31b40
Binary files /dev/null and b/src/pixmaps/gnm_superscript_24.png differ
diff --git a/src/wbc-gtk-actions.c b/src/wbc-gtk-actions.c
index ccf9d06..ac27c9a 100644
--- a/src/wbc-gtk-actions.c
+++ b/src/wbc-gtk-actions.c
@@ -2811,10 +2811,10 @@ static GtkToggleActionEntry const font_toggle_actions[] = {
 	{ "FontStrikeThrough", GTK_STOCK_STRIKETHROUGH,
 		N_("_Strike Through"), "<control>5",
 		N_("Strike Through"), G_CALLBACK (cb_font_strikethrough), FALSE },
-	{ "FontSuperscript", "stock_superscript",	/* from icon theme */
+	{ "FontSuperscript", "Gnumeric_Superscript",
 		N_("Su_perscript"), "<control>asciicircum",
 		N_("Superscript"), G_CALLBACK (cb_font_superscript), FALSE },
-	{ "FontSubscript", "stock_subscript",	/* from icon theme */
+	{ "FontSubscript", "Gnumeric_Subscript",
 		N_("Subscrip_t"), "<control>underscore",
 		N_("Subscript"), G_CALLBACK (cb_font_subscript), FALSE }
 };
diff --git a/src/wbc-gtk.c b/src/wbc-gtk.c
index 85385cd..35c55de 100644
--- a/src/wbc-gtk.c
+++ b/src/wbc-gtk.c
@@ -4553,6 +4553,8 @@ wbc_gtk_setup_icons (void)
 		{ gnm_money,				NULL,				"Gnumeric_FormatAsAccounting" },
 		{ gnm_percent,				NULL,				"Gnumeric_FormatAsPercentage" },
 		{ gnm_thousand,				NULL,				"Gnumeric_FormatThousandSeparator" },
+		{ gnm_subscript_24,			gnm_subscript_16,		"Gnumeric_Subscript" },
+		{ gnm_superscript_24,			gnm_superscript_16,		"Gnumeric_Superscript" },
 
 		{ gnm_auto,				NULL,				"Gnumeric_AutoSum" },
 		{ gnm_equal,				NULL,				"Gnumeric_Equal" },



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