Commit 178d1543 authored by JodyGoldberg's avatar JodyGoldberg Committed by Jody Goldberg
Browse files

Fix fmt accelerators. ctrl-~ == general not number ctrl-! == number not

2005-10-15  Jody Goldberg <jody@gnome.org>

	* src/wbcg-actions.c (cb_format_general) : Fix fmt accelerators.
	  ctrl-~ == general not number
	  ctrl-! == number not accounting
parent a6ac8c46
2005-10-14 Jody Goldberg <jody@gnome.org>
2005-10-15 Jody Goldberg <jody@gnome.org>
* src/wbcg-actions.c (cb_format_general) : Fix fmt accelerators.
ctrl-~ == general not number
ctrl-! == number not accounting
* src/gnm-format.c (format_value_gstring) : Use the last element as a
catch all. eg [>10][Blue]0;0 will fmt 1 in black even though it's
......
2005-10-14 Jody Goldberg <jody@gnome.org>
2005-10-15 Jody Goldberg <jody@gnome.org>
* src/wbcg-actions.c (cb_format_general) : Fix fmt accelerators.
ctrl-~ == general not number
ctrl-! == number not accounting
* src/gnm-format.c (format_value_gstring) : Use the last element as a
catch all. eg [>10][Blue]0;0 will fmt 1 in black even though it's
......
......@@ -300,7 +300,7 @@
<accelerator name="FontStrikeThrough" action="FontStrikeThrough"/>
<accelerator name="FormatAsNumber" action="FormatAsNumber"/>
<accelerator name="FormatAsCurrency" action="FormatAsCurrency"/>
<accelerator name="FormatAsAccounting" action="FormatAsAccounting"/>
<accelerator name="FormatAsGeneral" action="FormatAsGeneral"/>
<accelerator name="FormatAsPercentage" action="FormatAsPercentage"/>
<accelerator name="FormatAsScientific" action="FormatAsScientific"/>
<accelerator name="FormatAsDate" action="FormatAsDate"/>
......
......@@ -1234,6 +1234,11 @@ apply_number_format (WorkbookControlGUI *wbcg,
cmd_selection_format (WORKBOOK_CONTROL (wbcg), mstyle, NULL, descriptor);
}
static GNM_ACTION_DEF (cb_format_as_general)
{
apply_number_format (wbcg,
go_format_builtins [GO_FORMAT_GENERAL][0], _("Format as General"));
}
static GNM_ACTION_DEF (cb_format_as_number)
{
apply_number_format (wbcg,
......@@ -1974,14 +1979,17 @@ static GtkActionEntry const actions[] = {
NULL, N_("Split merged ranges of cells"),
G_CALLBACK (cb_unmerge_cells) },
{ "FormatAsGeneral", NULL, N_("General"),
"<control>asciitilde", N_("Format the selection as General"),
G_CALLBACK (cb_format_as_general) },
{ "FormatAsNumber", NULL, N_("Number"),
"<control>asciitilde", N_("Format the selection as numbers"),
"<control>exclam", N_("Format the selection as numbers"),
G_CALLBACK (cb_format_as_number) },
{ "FormatAsCurrency", NULL, N_("Currency"),
"<control>dollar", N_("Format the selection as currency"),
G_CALLBACK (cb_format_as_currency) },
{ "FormatAsAccounting", "Gnumeric_FormatAsAccounting", N_("Accounting"),
"<control>exclam", N_("Format the selection as accounting"),
NULL, N_("Format the selection as accounting"),
G_CALLBACK (cb_format_as_accounting) },
{ "FormatAsPercentage", "Gnumeric_FormatAsPercentage", N_("Percentage"),
"<control>percent", N_("Format the selection as percentage"),
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment