From 513f78d700df73263b3f932502dbe2d1eb1d39f0 Mon Sep 17 00:00:00 2001 From: Emmanuel Lepage Vallee Date: Tue, 29 Apr 2014 17:00:26 +0200 Subject: [PATCH] Fix more tooltip nil derefferences --- tooltip.lua | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/tooltip.lua b/tooltip.lua index a722815..c2732d6 100644 --- a/tooltip.lua +++ b/tooltip.lua @@ -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("".. data._text .."") + if self._w then + self._w:set_markup("".. self._text .."") end - init(data,data._w,dara._args) + init(self,self._w,self._args) end local function new(widget,text, args)