Public bug reported:

I think I find a bug in the screenlet Tooltip class.
In line 2478/2479 of __init__.py, in the cancel_show function of Tooltip :

   def cancel_show (self):
       """Cancel showing of the Notify."""
       if self.__timeout:
           gobject.source_remove(self.__timeout)
           self.p_context = None
           self.p_layout = None
 
self.p_context and self.p_layout is setted to None but never renewed, so the 
tooltip is not working.
I suggest to remove both lines.

And on line 2152 :

        def hide (self):
                """Hide the Tooltip window."""
                self.cancel_show()
                self.window.destroy() <= must be replaced by a 
self.window.hide()

Thanks

** Affects: screenlets
     Importance: Undecided
         Status: New

-- 
__init__.py broken Tooltip
https://bugs.launchpad.net/bugs/367303
You received this bug notification because you are a member of
Screenlets Dev Team, which is subscribed to Screenlets.

_______________________________________________
Mailing list: https://launchpad.net/~screenlets-dev
Post to     : [email protected]
Unsubscribe : https://launchpad.net/~screenlets-dev
More help   : https://help.launchpad.net/ListHelp

Reply via email to