hotssh r72 - trunk/hotssh/hotvte
- From: walters svn gnome org
- To: svn-commits-list gnome org
- Subject: hotssh r72 - trunk/hotssh/hotvte
- Date: Fri, 13 Feb 2009 21:19:09 +0000 (UTC)
Author: walters
Date: Fri Feb 13 21:19:09 2009
New Revision: 72
URL: http://svn.gnome.org/viewvc/hotssh?rev=72&view=rev
Log:
Bug 569614 - Fix right click url menuitem
Lift up URL analysis so it's available in both left click and right click.
Modified:
trunk/hotssh/hotvte/vteterm.py
Modified: trunk/hotssh/hotvte/vteterm.py
==============================================================================
--- trunk/hotssh/hotvte/vteterm.py (original)
+++ trunk/hotssh/hotvte/vteterm.py Fri Feb 13 21:19:09 2009
@@ -152,14 +152,14 @@
def __on_button_press(self, term, event):
match = self.__term.match_check(int(event.x/term.get_char_width()), int(event.y/term.get_char_height()))
+ if not match:
+ return
+ (matchstr, mdata) = match
+ if mdata == self.__match_http:
+ url = 'http://' + matchstr
+ else:
+ url = matchstr
if event.button == 1 and event.state & gtk.gdk.CONTROL_MASK:
- if not match:
- return
- (matchstr, mdata) = match
- if mdata == self.__match_http:
- url = 'http://' + matchstr
- else:
- url = matchstr
self.__open_url(url)
return True
elif event.button == 3:
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]