diff options
author | 2010-03-30 19:06:51 -0400 | |
---|---|---|
committer | 2010-03-30 19:06:51 -0400 | |
commit | ffe93793928977d79d620e6f580ccff85f3983ef (patch) | |
tree | 14fb7d8af2f604248eabee7fbe900d7254045e01 /core | |
parent | 0e5ee2ac98cf61bf574a6ea06b2e9d2f2e04c53d (diff) | |
download | textadept-ffe93793928977d79d620e6f580ccff85f3983ef.tar.gz textadept-ffe93793928977d79d620e6f580ccff85f3983ef.zip |
Added About dialog.
Diffstat (limited to 'core')
-rw-r--r-- | core/ext/menu.lua | 7 | ||||
-rw-r--r-- | core/init.lua | 2 | ||||
-rw-r--r-- | core/locale.conf | 4 |
3 files changed, 13 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 diff --git a/core/init.lua b/core/init.lua index 505a3b45..f17ec196 100644 --- a/core/init.lua +++ b/core/init.lua @@ -1,5 +1,7 @@ -- Copyright 2007-2010 Mitchell mitchell<att>caladbolg.net. See LICENSE. +_RELEASE = "Textadept 2.2 beta" + local textadept = _G.textadept package.path = _HOME..'/core/?.lua;'..package.path diff --git a/core/locale.conf b/core/locale.conf index 8d8bdb11..f7c1e519 100644 --- a/core/locale.conf +++ b/core/locale.conf @@ -620,6 +620,10 @@ MENU_HELP_MANUAL "_Manual" MENU_HELP_LUADOC "_LuaDoc" % core/ext/menu.lua +% "gtk-about" +MENU_HELP_ABOUT "gtk-about" + +% core/ext/menu.lua % "Error loading webpage: " MENU_BROWSER_ERROR "Error loading webpage: " |