aboutsummaryrefslogtreecommitdiff
path: root/core/ext/menu.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2009-02-14 15:14:37 -0500
committermitchell <70453897+667e-11@users.noreply.github.com>2009-02-14 15:14:37 -0500
commit8ea898e863c8c62fc0230d1c76d58bc477a16d14 (patch)
tree3ef140fd116b037041a77ad69b1da45dde38d4d3 /core/ext/menu.lua
parent95aca18efb8ace6d241070f52e3b092396d90aad (diff)
downloadtextadept-8ea898e863c8c62fc0230d1c76d58bc477a16d14.tar.gz
textadept-8ea898e863c8c62fc0230d1c76d58bc477a16d14.zip
Added textadept.context_menu field for a custom popup context menu.
Diffstat (limited to 'core/ext/menu.lua')
-rw-r--r--core/ext/menu.lua12
1 files changed, 12 insertions, 0 deletions
diff --git a/core/ext/menu.lua b/core/ext/menu.lua
index 1a2b06ed..3b3ec7ef 100644
--- a/core/ext/menu.lua
+++ b/core/ext/menu.lua
@@ -585,3 +585,15 @@ t.events.add_handler('menu_clicked',
end
end
end)
+
+t.context_menu = gtkmenu {
+ { l.MENU_EDIT_UNDO, ID.UNDO },
+ { l.MENU_EDIT_REDO, ID.REDO },
+ { SEPARATOR, ID.SEPARATOR },
+ { l.MENU_EDIT_CUT, ID.CUT },
+ { l.MENU_EDIT_COPY, ID.COPY },
+ { l.MENU_EDIT_PASTE, ID.PASTE },
+ { l.MENU_EDIT_DELETE, ID.DELETE },
+ { SEPARATOR, ID.SEPARATOR },
+ { l.MENU_EDIT_SELECT_ALL, ID.SELECT_ALL }
+}