diff --git a/plugins/gtkgui/gtkgui.py b/plugins/gtkgui/gtkgui.py index daf5ceb8d2987c51812e40e28db28d9f81c03f6e..aa8cc27183972ef728334fed9e85d5d009a3fbdb 100644 --- a/plugins/gtkgui/gtkgui.py +++ b/plugins/gtkgui/gtkgui.py @@ -622,8 +622,15 @@ class tabbed_chat_window: def on_conversation_textview_button_press_event(self, widget, event): # Do not open the standard popup menu, so we block right button click + # on a taged text if event.button == 3: - return True + win = widget.get_window(gtk.TEXT_WINDOW_TEXT) + x, y = widget.window_to_buffer_coords(gtk.TEXT_WINDOW_TEXT,\ + int(event.x), int(event.y)) + iter = widget.get_iter_at_location(x, y) + tags = iter.get_tags() + if tags: + return True def print_time_timeout(self, jid): if not jid in self.xmls.keys():