Fix more tooltip nil derefferences

This commit is contained in:
Emmanuel Lepage Vallee 2014-04-29 17:00:26 +02:00
parent 2b48b6c353
commit 513f78d700
1 changed files with 4 additions and 4 deletions

View File

@ -38,7 +38,7 @@ local function rel_parent(w,args2,args)
end
local function init(data,widget,args)
if not data.init then
if widget and not data.init then
data.init = true
local vertical = (args.direction == "left") or (args.direction == "right")
@ -100,10 +100,10 @@ end
local function set_text(self,text)
self.init = nil
self._text = text
if textw then
textw:set_markup("<b>".. data._text .."</b>")
if self._w then
self._w:set_markup("<b>".. self._text .."</b>")
end
init(data,data._w,dara._args)
init(self,self._w,self._args)
end
local function new(widget,text, args)