aboutsummaryrefslogtreecommitdiff
path: root/core/events.lua
diff options
context:
space:
mode:
authormitchell <70453897+667e-11@users.noreply.github.com>2013-08-26 21:47:55 -0400
committermitchell <70453897+667e-11@users.noreply.github.com>2013-08-26 21:47:55 -0400
commitacda712a50dbebafa295ccd07ce8186d9b82aa10 (patch)
tree0ab9229205aad0ac09bcdb0e9bc71c4f1bd87168 /core/events.lua
parent8a6341ae8db36e1b6857f90c39865d254dcdc163 (diff)
downloadtextadept-acda712a50dbebafa295ccd07ce8186d9b82aa10.tar.gz
textadept-acda712a50dbebafa295ccd07ce8186d9b82aa10.zip
Renamed `gui` to `ui` since it's more applicable.
Diffstat (limited to 'core/events.lua')
-rw-r--r--core/events.lua12
1 files changed, 6 insertions, 6 deletions
diff --git a/core/events.lua b/core/events.lua
index d01d5479..493fae6a 100644
--- a/core/events.lua
+++ b/core/events.lua
@@ -191,7 +191,7 @@ local M = {}
-- Emitted after selecting a menu item.
-- Arguments:
--
--- * _`menu_id`_: The numeric ID of the menu item set in [`gui.menu()`][].
+-- * _`menu_id`_: The numeric ID of the menu item set in [`ui.menu()`][].
-- @field QUIT (string)
-- Emitted when quitting Textadept.
-- When connecting to this event, connect with an index of 1 or the handler
@@ -238,22 +238,22 @@ local M = {}
-- Emitted on startup and by [`view:split()`][].
-- @field VIEW_BEFORE_SWITCH (string)
-- Emitted right before switching to another view.
--- Emitted by [`gui.goto_view()`][].
+-- Emitted by [`ui.goto_view()`][].
-- @field VIEW_AFTER_SWITCH (string)
-- Emitted right after switching to another view.
--- Emitted by [`gui.goto_view()`][].
+-- Emitted by [`ui.goto_view()`][].
--
-- [`buffer:auto_c_cancel()`]: buffer.html#auto_c_cancel
-- [`view:goto_buffer()`]: view.html#goto_buffer
-- [`buffer.new()`]: buffer.html#new
-- [`buffer:delete()`]: buffer.html#delete
-- [dwell period]: buffer.html#mouse_dwell_time
--- [`gui.menu()`]: gui.html#menu
+-- [`ui.menu()`]: ui.html#menu
-- [`quit()`]: _G.html#quit
-- [`reset()`]: _G.html#reset
-- [`buffer:user_list_show()`]: buffer.html#user_list_show
-- [`view:split()`]: view.html#split
--- [`gui.goto_view()`]: gui.html#goto_view
+-- [`ui.goto_view()`]: ui.html#goto_view
module('events')]]
local handlers = {}
@@ -266,7 +266,7 @@ local handlers = {}
-- @param f The Lua function to connect to *event*.
-- @param index Optional index to insert the handler into.
-- @return handler ID.
--- @usage events.connect('my_event', function(msg) gui.print(msg) end)
+-- @usage events.connect('my_event', function(msg) ui.print(msg) end)
-- @see disconnect
-- @name connect
function M.connect(event, f, index)