diff options
author | 2010-03-30 19:06:51 -0400 | |
---|---|---|
committer | 2010-03-30 19:06:51 -0400 | |
commit | ffe93793928977d79d620e6f580ccff85f3983ef (patch) | |
tree | 14fb7d8af2f604248eabee7fbe900d7254045e01 /core/ext | |
parent | 0e5ee2ac98cf61bf574a6ea06b2e9d2f2e04c53d (diff) | |
download | textadept-ffe93793928977d79d620e6f580ccff85f3983ef.tar.gz textadept-ffe93793928977d79d620e6f580ccff85f3983ef.zip |
Added About dialog.
Diffstat (limited to 'core/ext')
-rw-r--r-- | core/ext/menu.lua | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/core/ext/menu.lua b/core/ext/menu.lua index 8dc44b03..40b2bdfa 100644 --- a/core/ext/menu.lua +++ b/core/ext/menu.lua @@ -130,6 +130,7 @@ local ID = { -- Help MANUAL = 901, LUADOC = 902, + ABOUT = 903, } @@ -285,6 +286,8 @@ local menubar = { title = l.MENU_HELP_TITLE, { l.MENU_HELP_MANUAL, ID.MANUAL }, { l.MENU_HELP_LUADOC, ID.LUADOC }, + { SEPARATOR, ID.SEPARATOR }, + { l.MENU_HELP_ABOUT, ID.ABOUT }, }, } local lexer_menu = { title = l.MENU_LEX_TITLE } @@ -486,6 +489,10 @@ local actions = { -- Help [ID.MANUAL] = { open_webpage, _HOME..'/doc/manual/1_Introduction.html' }, [ID.LUADOC] = { open_webpage, _HOME..'/doc/index.html' }, + [ID.ABOUT] = { + t.dialog, 'ok-msgbox', '--title', 'Textadept', '--informative-text', + _RELEASE, '--no-cancel' + }, } if MAC then actions[ID.PASTE] = { m_editing.smart_paste } end -- fix paste issue |