aboutsummaryrefslogtreecommitdiff
path: root/modules/textadept
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2013-04-25 09:40:09 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2013-04-25 09:40:09 -0400
commit247e88c5ef3fd0ffd1d7df51c6be5e1c8ed5ba21 (patch)
treeb75ed4f9ab82b6d20db1f2bb3e02070c1015504b /modules/textadept
parent02a014c3d865ce5a426d2fd0f69c801b7f5a0fc0 (diff)
downloadtextadept-247e88c5ef3fd0ffd1d7df51c6be5e1c8ed5ba21.tar.gz
textadept-247e88c5ef3fd0ffd1d7df51c6be5e1c8ed5ba21.zip
Added icons to msgbox dialogs.
Requires gtdialog r56.
Diffstat (limited to 'modules/textadept')
-rw-r--r--modules/textadept/find.lua1
-rw-r--r--modules/textadept/keys.lua2
-rw-r--r--modules/textadept/session.lua1
3 files changed, 2 insertions, 2 deletions
diff --git a/modules/textadept/find.lua b/modules/textadept/find.lua
index c9d67ade..5b0adae8 100644
--- a/modules/textadept/find.lua
+++ b/modules/textadept/find.lua
@@ -270,6 +270,7 @@ local function run(code)
'--title', _L['Error'],
'--text', _L['An error occured:'],
'--informative-text', val:gsub('"', '\\"'),
+ '--icon', 'gtk-dialog-error',
'--button1', _L['_OK'],
'--button2', _L['_Cancel'],
'--no-cancel')
diff --git a/modules/textadept/keys.lua b/modules/textadept/keys.lua
index d6b9bc70..e87bed56 100644
--- a/modules/textadept/keys.lua
+++ b/modules/textadept/keys.lua
@@ -565,8 +565,6 @@ if not CURSES then
keys.f1 = {utils.open_webpage, _HOME..'/doc/01_Introduction.html'}
keys.sf1 = {utils.open_webpage, _HOME..'/doc/api/index.html'}
end
--- TODO: {gui.dialog, 'ok-msgbox', '--title', 'Textadept', '--text', _RELEASE,
--- '--button1', _L['_OK'], '--no-cancel'}
-- Movement commands.
if OSX then
diff --git a/modules/textadept/session.lua b/modules/textadept/session.lua
index 5ac2f50f..e6a9063e 100644
--- a/modules/textadept/session.lua
+++ b/modules/textadept/session.lua
@@ -112,6 +112,7 @@ function M.load(filename)
'--title', _L['Session Files Not Found'],
'--text', _L['The following session files were not found'],
'--informative-text', table.concat(not_found, '\n'),
+ '--icon', 'gtk-dialog-warning',
'--button1', _L['_OK'])
end
return true