[gnumeric] GUI: Fix toolbar overflow menu.
- From: Morten Welinder <mortenw src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnumeric] GUI: Fix toolbar overflow menu.
- Date: Fri, 21 Jan 2022 20:20:00 +0000 (UTC)
commit b519d8714758624523c314f25c6ebdd22585b15e
Author: Morten Welinder <terra gnome org>
Date: Fri Jan 21 15:19:29 2022 -0500
GUI: Fix toolbar overflow menu.
Labels were missing for undo, redo, and zoom.
NEWS | 1 +
src/wbc-gtk-actions.c | 12 +++++++++---
2 files changed, 10 insertions(+), 3 deletions(-)
---
diff --git a/NEWS b/NEWS
index dadbbd65b..13a61a781 100644
--- a/NEWS
+++ b/NEWS
@@ -3,6 +3,7 @@ Gnumeric 1.12.52
Morten:
* Attach the vertical alignment selector to the toolbar.
* Improve the toolbar styling a bit.
+ * Fix toolbar overflow menu's labeling.
--------------------------------------------------------------------------
Gnumeric 1.12.51
diff --git a/src/wbc-gtk-actions.c b/src/wbc-gtk-actions.c
index 3a0f9e766..1b1d6d8a9 100644
--- a/src/wbc-gtk-actions.c
+++ b/src/wbc-gtk-actions.c
@@ -4015,7 +4015,8 @@ create_undo_redo (GOActionComboStack **haction, char const *hname,
WBCGtk *gtk,
char const *tooltip,
char const *icon_name,
- char const *accel, const char *alt_accel)
+ char const *accel, const char *alt_accel,
+ const char *label)
{
*haction = g_object_new
(go_action_combo_stack_get_type (),
@@ -4024,6 +4025,7 @@ create_undo_redo (GOActionComboStack **haction, char const *hname,
"icon-name", icon_name,
"sensitive", FALSE,
"visible-vertical", FALSE,
+ "label", label,
NULL);
gtk_action_group_add_action_with_accel
(gtk->semi_permanent_actions,
@@ -4038,6 +4040,7 @@ create_undo_redo (GOActionComboStack **haction, char const *hname,
"icon-name", icon_name,
"sensitive", FALSE,
"visible-horizontal", FALSE,
+ "label", label,
NULL);
gtk_action_group_add_action_with_accel
(gtk->semi_permanent_actions,
@@ -4075,12 +4078,14 @@ wbc_gtk_init_undo_redo (WBCGtk *gtk)
>k->redo_haction, "Redo", G_CALLBACK (cb_redo_activated),
>k->redo_vaction, "VRedo", G_CALLBACK (command_redo),
gtk, _("Redo the undone action"),
- "edit-redo", "<control>y", "<control><shift>z");
+ "edit-redo", "<control>y", "<control><shift>z",
+ _("Redo"));
create_undo_redo (
>k->undo_haction, "Undo", G_CALLBACK (cb_undo_activated),
>k->undo_vaction, "VUndo", G_CALLBACK (command_undo),
gtk, _("Undo the last action"),
- "edit-undo", "<control>z", NULL);
+ "edit-undo", "<control>z", NULL,
+ _("Undo"));
}
/****************************************************************************/
@@ -4154,6 +4159,7 @@ wbc_gtk_init_zoom (WBCGtk *wbcg)
wbcg->zoom_vaction =
g_object_new (GTK_TYPE_ACTION,
"name", "VZoom",
+ "label", _("_Zoom"),
"tooltip", _("Zoom"),
"icon-name", "zoom-in",
"visible-horizontal", FALSE,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]