Browse Source

rc.lua: Use `.widget =` instead of `:setup()`.

More work on the property vs. r/w methods standardization.
Emmanuel Lepage Vallee 10 months ago
parent
commit
f4a0e1fc39
1 changed files with 2 additions and 2 deletions
  1. 2
    2
      awesomerc.lua

+ 2
- 2
awesomerc.lua View File

@@ -197,7 +197,7 @@ screen.connect_signal("request::desktop_decoration", function(s)
197 197
 
198 198
     -- @DOC_SETUP_WIDGETS@
199 199
     -- Add widgets to the wibox
200
-    s.mywibox:setup {
200
+    s.mywibox.widget = {
201 201
         layout = wibox.layout.align.horizontal,
202 202
         { -- Left widgets
203 203
             layout = wibox.layout.fixed.horizontal,
@@ -543,7 +543,7 @@ client.connect_signal("request::titlebars", function(c)
543 543
         end),
544 544
     }
545 545
 
546
-    awful.titlebar(c) : setup {
546
+    awful.titlebar(c).widget = {
547 547
         { -- Left
548 548
             awful.titlebar.widget.iconwidget(c),
549 549
             buttons = buttons,

Loading…
Cancel
Save