summaryrefslogtreecommitdiff
path: root/email-widget
diff options
context:
space:
mode:
authorLucas Schwiderski <lucas@lschwiderski.de>2021-05-10 20:21:04 +0200
committerLucas Schwiderski <lucas@lschwiderski.de>2021-05-10 20:21:04 +0200
commit05a3ace5dc5ffa44b3fa2d151f9695451c53e831 (patch)
treeeac8a13c456d7ad1ae174a7e83c4f9e26af2c3bc /email-widget
parent2f109c4c2a36ffbe24ff8f6a482664f7383827a7 (diff)
bug(email_widget): Fix widgets not accessible
When fixing linter warnings in ed2b256407291d8edadfcea9380029633cc7d9d8 the previously global values were made local but no return statement to export them was added. Signed-off-by: Lucas Schwiderski <lucas@lschwiderski.de>
Diffstat (limited to 'email-widget')
-rw-r--r--email-widget/README.md3
-rw-r--r--email-widget/email.lua2
2 files changed, 4 insertions, 1 deletions
diff --git a/email-widget/README.md b/email-widget/README.md
index cb55568..3833f14 100644
--- a/email-widget/README.md
+++ b/email-widget/README.md
@@ -14,7 +14,8 @@ To install it put **email.lua** and **email-widget** folder under **~/.config/aw
- add widget to awesome:
```lua
-require("email")
+local email_widget, email_icon = require("email")
+
...
s.mytasklist, -- Middle widget
{ -- Right widgets
diff --git a/email-widget/email.lua b/email-widget/email.lua
index f7656fb..df80678 100644
--- a/email-widget/email.lua
+++ b/email-widget/email.lua
@@ -40,3 +40,5 @@ local function show_emails()
end
email_icon:connect_signal("mouse::enter", function() show_emails() end)
+
+return email_widget, email_icon