diff options
author | 2009-07-08 19:39:26 -0400 | |
---|---|---|
committer | 2009-07-08 19:39:26 -0400 | |
commit | a8e87e8efd47676ff0f04fbfba14be189b169ebb (patch) | |
tree | e04ec88b6ad70d43b39e0c2700a86affc316fa88 /core/events.lua | |
parent | 9827462bc8ac4ecc6009f2285c2397bf6ff64777 (diff) | |
download | textadept-a8e87e8efd47676ff0f04fbfba14be189b169ebb.tar.gz textadept-a8e87e8efd47676ff0f04fbfba14be189b169ebb.zip |
Replace lua_dialog with gcocoadialog.
Diffstat (limited to 'core/events.lua')
-rw-r--r-- | core/events.lua | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/core/events.lua b/core/events.lua index 28e446c9..afaffd5f 100644 --- a/core/events.lua +++ b/core/events.lua @@ -85,6 +85,7 @@ module('textadept.events', package.seeall) -- pm_menu_clicked(menu_id, selected_item) -- menu_id: the numeric ID for the menu item. -- selected_item: identical to 'full_path' for 'pm_contents_request' event. +-- pm_view_filled() -- find(text, next) -- text: the text to find. -- next: flag indicating whether or not the search direction is forward. @@ -458,14 +459,15 @@ add_handler('quit', any = true end end - if any then - if cocoa_dialog('yesno-msgbox', { - title = locale.EVENTS_QUIT_TITLE, - text = locale.EVENTS_QUIT_TEXT, - ['informative-text'] = - string.format(locale.EVENTS_QUIT_MSG, table.concat(list, '\n')), - ['no-newline'] = true - }) ~= '2' then return false end + if any and + textadept.dialog('yesno-msgbox', + '--title', locale.EVENTS_QUIT_TITLE, + '--text', locale.EVENTS_QUIT_TEXT, + '--informative-text', + string.format(locale.EVENTS_QUIT_MSG, + table.concat(list, '\n')), + '--no-newline') ~= '2' then + return false end return true end) |