]> git.madduck.net Git - etc/awesome.git/blobdiff - widgets/calendar.lua

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

some other space fixes
[etc/awesome.git] / widgets / calendar.lua
index 38b4d8b3d46e2a0ae91b29d32131c1154432f4fa..e5f6e88c02be51e946d08b5c5e7249eb6338b741 100644 (file)
@@ -23,7 +23,7 @@ local setmetatable = setmetatable
 local calendar = {}
 local notification = nil
 
-local function create(background, foreground)
+local function create(foreground, background)
     calendar.offset = 0
     calendar.icons_dir = icons_dir .. "cal/white/" -- default
     calendar.notify_icon = nil
@@ -111,8 +111,8 @@ function calendar:show(t_out, inc_offset)
                                     timeout = tims })
 end
 
-function calendar:attach(widget, background, foreground)
-    create(background, foreground)
+function calendar:attach(widget, foreground, background)
+    create(foreground, background)
     widget:connect_signal("mouse::enter", function () calendar:show() end)
     widget:connect_signal("mouse::leave", function () calendar:hide() end)
     widget:buttons(awful.util.table.join( awful.button({ }, 1, function ()