diff options
Diffstat (limited to 'core/gui.lua')
-rw-r--r-- | core/gui.lua | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/core/gui.lua b/core/gui.lua index ab255e67..51138bd1 100644 --- a/core/gui.lua +++ b/core/gui.lua @@ -176,6 +176,8 @@ connect('uri_dropped', end end end) +connect('appleevent_odoc', + function(uri) return events.emit('uri_dropped', 'file://'..uri) end) local string_format = string.format local EOLs = { L('CRLF'), L('CR'), L('LF') } @@ -269,17 +271,4 @@ connect('quit', return true end) -if OSX then - connect('appleevent_odoc', - function(uri) return events.emit('uri_dropped', 'file://'..uri) end) - - connect('buffer_new', - function() -- GTK-OSX has clipboard problems - buffer.paste = function() - local clipboard_text = gui.clipboard_text - if #clipboard_text > 0 then buffer:replace_sel(clipboard_text) end - end - end) -end - connect('error', function(...) gui._print(L('[Error Buffer]'), ...) end) |