diff options
author | 2013-04-25 09:40:09 -0400 | |
---|---|---|
committer | 2013-04-25 09:40:09 -0400 | |
commit | 247e88c5ef3fd0ffd1d7df51c6be5e1c8ed5ba21 (patch) | |
tree | b75ed4f9ab82b6d20db1f2bb3e02070c1015504b /core/file_io.lua | |
parent | 02a014c3d865ce5a426d2fd0f69c801b7f5a0fc0 (diff) | |
download | textadept-247e88c5ef3fd0ffd1d7df51c6be5e1c8ed5ba21.tar.gz textadept-247e88c5ef3fd0ffd1d7df51c6be5e1c8ed5ba21.zip |
Added icons to msgbox dialogs.
Requires gtdialog r56.
Diffstat (limited to 'core/file_io.lua')
-rw-r--r-- | core/file_io.lua | 3 |
1 files changed, 3 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 '' |