Ticket #3545 (closed defect: fixed)

Opened 10 months ago

Last modified 10 months ago

stale tooltip when hovering XHTML link

Reported by: hđh Owned by: asterix
Priority: normal Milestone: 0.11.3
Component: chat Version:
Severity: minor Keywords:
Cc: OS: All

Description

I am using Gajim r8944. When I receive a message such as:

!#xml
<message to="some-jid">
<body>example</body>
<html xmlns='http://jabber.org/protocol/xhtml-im'>
  <body xmlns='http://www.w3.org/1999/xhtml'>
    <a href="http://example.org/">example</a>
</body>
</html>
</message>

Hovering the link text displays a tooltip with the link location. When I left the text area quickly (e.g. moving the mouse to the info pane above it), the tooltip remains. If I close the conversation the tooltip is sticked on the screen, only quitting gajim removes it.

Also each time I hover that tooltip in this state, there are a lot of repeating tracebacks in terminal, I see those two repeated:

Traceback (most recent call last):
  File "/home/hdh/e1/path/64/gajim/share/gajim/src/tooltips.py", line 93, in motion_notify_event
    self.hide_tooltip()
  File "/home/hdh/e1/path/64/gajim/share/gajim/src/tooltips.py", line 150, in hide_tooltip
    if self.timeout > 0:
AttributeError: BaseTooltip instance has no attribute 'timeout'

and

Traceback (most recent call last):
  File "/home/hdh/e1/path/64/gajim/share/gajim/src/tooltips.py", line 116, in expose
    style = self.win.get_style()
AttributeError: BaseTooltip instance has no attribute 'win'

Attachments

Change History

Changed 10 months ago by asterix

do you have any local modifications? Cause I can't reproduce this bug, and that sounds impossible:

class BaseTooltip:
   def __init__(self):
      self.timeout = 0
      self.win = None

so it's impossible that this clase has no 'timeout' or 'win' attribute

Changed 10 months ago by asterix

hey ok I reproduces, one you have the tooltip, press esc to close the window, and tooltip remain. I look at that

Changed 10 months ago by asterix

  • status changed from new to closed
  • resolution set to fixed
  • milestone set to 0.12

(In [8947]) destroy htmltextview tooltip when we destroy a chat control. fixes #3545

Changed 10 months ago by asterix

(In [8948]) destroy htmltextview tooltip when we destroy a chat control. fixes #3545

Changed 10 months ago by asterix

  • milestone changed from 0.12 to 0.11.3

Add/Change #3545 (stale tooltip when hovering XHTML link)

Author



Change Properties
<Author field>
Action
as closed
Next status will be 'reopened'
 
Note: See TracTickets for help on using tickets.