Fix more tooltip nil derefferences
This commit is contained in:
parent
2b48b6c353
commit
513f78d700
|
@ -38,7 +38,7 @@ local function rel_parent(w,args2,args)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function init(data,widget,args)
|
local function init(data,widget,args)
|
||||||
if not data.init then
|
if widget and not data.init then
|
||||||
data.init = true
|
data.init = true
|
||||||
|
|
||||||
local vertical = (args.direction == "left") or (args.direction == "right")
|
local vertical = (args.direction == "left") or (args.direction == "right")
|
||||||
|
@ -100,10 +100,10 @@ end
|
||||||
local function set_text(self,text)
|
local function set_text(self,text)
|
||||||
self.init = nil
|
self.init = nil
|
||||||
self._text = text
|
self._text = text
|
||||||
if textw then
|
if self._w then
|
||||||
textw:set_markup("<b>".. data._text .."</b>")
|
self._w:set_markup("<b>".. self._text .."</b>")
|
||||||
end
|
end
|
||||||
init(data,data._w,dara._args)
|
init(self,self._w,self._args)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function new(widget,text, args)
|
local function new(widget,text, args)
|
||||||
|
|
Loading…
Reference in New Issue