typo
This commit is contained in:
parent
000b0d908b
commit
a6686794ac
1 changed files with 13 additions and 12 deletions
|
@ -524,8 +524,8 @@ class ConversationTextview:
|
||||||
|
|
||||||
def show_xep0184_warning_tooltip(self):
|
def show_xep0184_warning_tooltip(self):
|
||||||
pointer = self.tv.get_pointer()
|
pointer = self.tv.get_pointer()
|
||||||
x, y = self.tv.window_to_buffer_coords(gtk.TEXT_WINDOW_TEXT, pointer[0],
|
x, y = self.tv.window_to_buffer_coords(gtk.TEXT_WINDOW_TEXT,
|
||||||
pointer[1])
|
pointer[0], pointer[1])
|
||||||
tags = self.tv.get_iter_at_location(x, y).get_tags()
|
tags = self.tv.get_iter_at_location(x, y).get_tags()
|
||||||
tag_table = self.tv.get_buffer().get_tag_table()
|
tag_table = self.tv.get_buffer().get_tag_table()
|
||||||
xep0184_warning = False
|
xep0184_warning = False
|
||||||
|
@ -542,8 +542,8 @@ class ConversationTextview:
|
||||||
|
|
||||||
def show_line_tooltip(self):
|
def show_line_tooltip(self):
|
||||||
pointer = self.tv.get_pointer()
|
pointer = self.tv.get_pointer()
|
||||||
x, y = self.tv.window_to_buffer_coords(gtk.TEXT_WINDOW_TEXT, pointer[0],
|
x, y = self.tv.window_to_buffer_coords(gtk.TEXT_WINDOW_TEXT,
|
||||||
pointer[1])
|
pointer[0], pointer[1])
|
||||||
tags = self.tv.get_iter_at_location(x, y).get_tags()
|
tags = self.tv.get_iter_at_location(x, y).get_tags()
|
||||||
tag_table = self.tv.get_buffer().get_tag_table()
|
tag_table = self.tv.get_buffer().get_tag_table()
|
||||||
over_line = False
|
over_line = False
|
||||||
|
@ -585,10 +585,11 @@ class ConversationTextview:
|
||||||
return False
|
return False
|
||||||
|
|
||||||
def on_textview_motion_notify_event(self, widget, event):
|
def on_textview_motion_notify_event(self, widget, event):
|
||||||
'''change the cursor to a hand when we are over a mail or an url'''
|
'''change the cursor to a hand when we are over a mail or an
|
||||||
|
url'''
|
||||||
pointer_x, pointer_y, spam = self.tv.window.get_pointer()
|
pointer_x, pointer_y, spam = self.tv.window.get_pointer()
|
||||||
x, y = self.tv.window_to_buffer_coords(gtk.TEXT_WINDOW_TEXT, pointer_x,
|
x, y = self.tv.window_to_buffer_coords(gtk.TEXT_WINDOW_TEXT,
|
||||||
pointer_y)
|
pointer_x, pointer_y)
|
||||||
tags = self.tv.get_iter_at_location(x, y).get_tags()
|
tags = self.tv.get_iter_at_location(x, y).get_tags()
|
||||||
if self.change_cursor:
|
if self.change_cursor:
|
||||||
self.tv.get_window(gtk.TEXT_WINDOW_TEXT).set_cursor(
|
self.tv.get_window(gtk.TEXT_WINDOW_TEXT).set_cursor(
|
||||||
|
@ -642,8 +643,8 @@ class ConversationTextview:
|
||||||
def on_textview_populate_popup(self, textview, menu):
|
def on_textview_populate_popup(self, textview, menu):
|
||||||
'''we override the default context menu and we prepend Clear
|
'''we override the default context menu and we prepend Clear
|
||||||
(only if used_in_history_window is False)
|
(only if used_in_history_window is False)
|
||||||
and if we have sth selected we show a submenu with actions on the phrase
|
and if we have sth selected we show a submenu with actions on
|
||||||
(see on_conversation_textview_button_press_event)'''
|
the phrase (see on_conversation_textview_button_press_event)'''
|
||||||
|
|
||||||
separator_menuitem_was_added = False
|
separator_menuitem_was_added = False
|
||||||
if not self.used_in_history_window:
|
if not self.used_in_history_window:
|
||||||
|
|
Loading…
Add table
Reference in a new issue