From 97852faead603a90219639e238587a2414f1c1e4 Mon Sep 17 00:00:00 2001 From: mitchell <70453897+667e-11@users.noreply.github.com> Date: Thu, 25 Feb 2010 04:50:42 -0500 Subject: Modified quit and close dialogs to be more readable. Submitted by rgieseke. --- core/file_io.lua | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'core/file_io.lua') diff --git a/core/file_io.lua b/core/file_io.lua index fa878c39..ced71eb8 100644 --- a/core/file_io.lua +++ b/core/file_io.lua @@ -323,10 +323,14 @@ end function close(buffer) textadept.check_focused_buffer(buffer) if buffer.dirty and - textadept.dialog('yesno-msgbox', + textadept.dialog('msgbox', '--title', locale.IO_CLOSE_TITLE, '--text', locale.IO_CLOSE_TEXT, - '--informative-text', locale.IO_CLOSE_MSG, + '--informative-text', + string.format('%s', (buffer.filename or + buffer._type or locale.UNTITLED)), + '--button1', 'gtk-cancel', + '--button2', locale.IO_CLOSE_BUTTON2, '--no-newline') ~= '2' then return false end -- cgit v1.2.3