continue fixing gobject warnings

This commit is contained in:
Yann Leboulanger 2014-06-21 10:41:13 +02:00
parent cc8e49b212
commit ebe5da1d0a
2 changed files with 4 additions and 3 deletions

View File

@ -759,7 +759,7 @@ class FileTransfersWindow:
pointer = w.get_device_position(device)
props = widget.get_path_at_pos(int(event.x), int(event.y))
self.height_diff = pointer[2] - int(event.y)
if self.tooltip.timeout > 0:
if self.tooltip.timeout > 0 or self.tooltip.shown:
if not props or self.tooltip.id != props[0]:
self.tooltip.hide_tooltip()
if props:
@ -788,7 +788,7 @@ class FileTransfersWindow:
pointer = w.get_device_position(device)
props = self.tree.get_path_at_pos(pointer[1],
pointer[2] - self.height_diff)
if self.tooltip.timeout > 0:
if self.tooltip.timeout > 0 or self.tooltip.shown:
if not props or self.tooltip.id == props[0]:
self.tooltip.hide_tooltip()
@ -956,6 +956,7 @@ class FileTransfersWindow:
self.set_status(file_props, 'stop')
def show_tooltip(self, widget):
self.tooltip.timeout = 0
if self.height_diff == 0:
self.tooltip.hide_tooltip()
return

View File

@ -2714,7 +2714,7 @@ class GroupchatControl(ChatControlBase):
def on_list_treeview_leave_notify_event(self, widget, event):
props = widget.get_path_at_pos(int(event.x), int(event.y))
if self.tooltip.timeout > 0:
if self.tooltip.timeout > 0 or self.tooltip.shown:
if not props or self.tooltip.id == props[0]:
self.tooltip.hide_tooltip()