nothing special

This commit is contained in:
Nikos Kouremenos 2005-03-12 16:19:52 +00:00
parent 6b8203916f
commit 971e71c304
2 changed files with 11 additions and 3 deletions

View File

@ -8360,7 +8360,7 @@ Custom</property>
<widget class="GtkHBox" id="tab_hbox"> <widget class="GtkHBox" id="tab_hbox">
<property name="visible">True</property> <property name="visible">True</property>
<property name="homogeneous">False</property> <property name="homogeneous">False</property>
<property name="spacing">0</property> <property name="spacing">3</property>
<child> <child>
<widget class="GtkLabel" id="label221"> <widget class="GtkLabel" id="label221">

View File

@ -533,6 +533,14 @@ class tabbed_chat_window:
def hyperlink_handler(self, texttag, widget, event, iter, kind): def hyperlink_handler(self, texttag, widget, event, iter, kind):
if event.type == gtk.gdk.BUTTON_RELEASE: if event.type == gtk.gdk.BUTTON_RELEASE:
#FIXME (nk to yann):
# can we know if that button release had also before selected text?
# let's say we have http://be this is nice
# and I start to select (with my mouse) the text from right to left
# starting with nice. SO I go nice is this eb//:ptth and just stop pressing the mouse button
# then we will launch the mailer/browser which is not what the user want
# is there sth you do to fix this?
# maybe check before launching if we have a selection with non empty text in it?
begin_iter = iter.copy() begin_iter = iter.copy()
#we get the begining of the tag #we get the begining of the tag
while not begin_iter.begins_tag(texttag): while not begin_iter.begins_tag(texttag):