aboutsummaryrefslogtreecommitdiff
path: root/core
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 /core
parent02a014c3d865ce5a426d2fd0f69c801b7f5a0fc0 (diff)
downloadtextadept-247e88c5ef3fd0ffd1d7df51c6be5e1c8ed5ba21.tar.gz
textadept-247e88c5ef3fd0ffd1d7df51c6be5e1c8ed5ba21.zip
Added icons to msgbox dialogs.
Requires gtdialog r56.
Diffstat (limited to 'core')
-rw-r--r--core/file_io.lua3
-rw-r--r--core/gui.lua1
2 files changed, 4 insertions, 0 deletions
diff --git a/core/file_io.lua b/core/file_io.lua
index c6fc45ba..137463d9 100644
--- a/core/file_io.lua
+++ b/core/file_io.lua
@@ -317,6 +317,7 @@ local function close(buffer)
'--title', _L['Close without saving?'],
'--text', _L['There are unsaved changes in'],
'--informative-text', filename,
+ '--icon', 'gtk-dialog-question',
'--button1', _L['_Cancel'],
'--button2', _L['Close _without saving'],
'--no-newline') ~= '2' then
@@ -358,6 +359,7 @@ local function update_modified_file()
'--informative-text',
('"%s"\n%s'):format(utf8_filename,
_L['has been modified. Reload it?']),
+ '--icon', 'gtk-dialog-question',
'--button1', _L['_Yes'],
'--button2', _L['_No'],
'--no-cancel',
@@ -440,6 +442,7 @@ function io.snapopen(utf8_paths, filter, exclude_FILTER, ...)
string.format('%d %s %d', io.SNAPOPEN_MAX,
_L['files or more were found. Showing the first'],
io.SNAPOPEN_MAX),
+ '--icon', 'gtk-dialog-info',
'--button1', _L['_OK'])
end
local width = CURSES and {'--width', gui.size[1] - 2} or ''
diff --git a/core/gui.lua b/core/gui.lua
index 1d0a782b..6cfa35c6 100644
--- a/core/gui.lua
+++ b/core/gui.lua
@@ -432,6 +432,7 @@ events_connect(events.QUIT, function()
'--text',
_L['The following buffers are unsaved:'],
'--informative-text', table.concat(list, '\n'),
+ '--icon', 'gtk-dialog-question',
'--button1', _L['_Cancel'],
'--button2', _L['Quit _without saving'],
'--no-newline') == '2'