hotssh r72 - trunk/hotssh/hotvte



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]