From 57f38f48249ecb1a042c6418bdd5792e7e2da0c8 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Fri, 28 Dec 2018 02:20:26 -0500 Subject: [PATCH] layoutbox: Deprecate the old constructor --- lib/awful/widget/layoutbox.lua | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/lib/awful/widget/layoutbox.lua b/lib/awful/widget/layoutbox.lua index 07b12d629..b2be8684c 100644 --- a/lib/awful/widget/layoutbox.lua +++ b/lib/awful/widget/layoutbox.lua @@ -14,7 +14,7 @@ local tooltip = require("awful.tooltip") local beautiful = require("beautiful") local wibox = require("wibox") local surface = require("gears.surface") --- local gdebug = require("gears.debug") +local gdebug = require("gears.debug") local gtable = require("gears.table") local function get_screen(s) @@ -55,11 +55,11 @@ function layoutbox.new(args) if type(args) == "number" or type(args) == "screen" or args.fake_remove then screen, args = args, {} ---TODO uncomment --- gdebug.deprecate( --- "Use awful.widget.layoutbox{screen=s} instead of awful.widget.layoutbox(screen)", --- {deprecated_in=5} --- ) + + gdebug.deprecate( + "Use awful.widget.layoutbox{screen=s} instead of awful.widget.layoutbox(screen)", + {deprecated_in=5} + ) end assert(type(args) == "table")