[gtk/wip/chergert/textview-undo-menu-item] textview: add undo/redo menu actions
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk/wip/chergert/textview-undo-menu-item] textview: add undo/redo menu actions
- Date: Mon, 13 Jan 2020 23:26:10 +0000 (UTC)
commit 15b5a404b86d7ca4269205c7702fbdade3d2caaf
Author: Christian Hergert <chergert redhat com>
Date: Mon Jan 13 15:25:05 2020 -0800
textview: add undo/redo menu actions
gtk/gtktextview.c | 12 ++++++++++++
1 file changed, 12 insertions(+)
---
diff --git a/gtk/gtktextview.c b/gtk/gtktextview.c
index ed5f6ad90d..e36f335203 100644
--- a/gtk/gtktextview.c
+++ b/gtk/gtktextview.c
@@ -8574,6 +8574,18 @@ gtk_text_view_get_menu_model (GtkTextView *text_view)
g_menu_append_section (menu, NULL, G_MENU_MODEL (section));
g_object_unref (section);
+ section = g_menu_new ();
+ item = g_menu_item_new (_("_Undo"), "text.undo");
+ g_menu_item_set_attribute (item, "touch-icon", "s", "edit-undo-symbolic");
+ g_menu_append_item (section, item);
+ g_object_unref (item);
+ item = g_menu_item_new (_("_Redo"), "text.redo");
+ g_menu_item_set_attribute (item, "touch-icon", "s", "edit-redo-symbolic");
+ g_menu_append_item (section, item);
+ g_object_unref (item);
+ g_menu_append_section (menu, NULL, G_MENU_MODEL (section));
+ g_object_unref (section);
+
section = g_menu_new ();
item = g_menu_item_new (_("Select _All"), "selection.select-all");
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]