← Back to team overview

screenlets-dev team mailing list archive

[Bug 367303] [NEW] __init__.py broken Tooltip

 

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.



Follow ups

References