[gevice] added support for select words doing double click in vte terminal
- From: Alejandro Valdes Jimenez <avaldes src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gevice] added support for select words doing double click in vte terminal
- Date: Wed, 22 Dec 2010 19:24:59 +0000 (UTC)
commit 4bd1de6429384b4ef74b85fbb0453f5465d8fb56
Author: Alejandro Valdes Jimenez <avaldes gnome org>
Date: Wed Dec 22 16:24:45 2010 -0300
added support for select words doing double click in vte terminal
ChangeLog | 3 +++
src/gevicevte.py | 12 ++++++++++--
2 files changed, 13 insertions(+), 2 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 2a598fd..f509bce 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,4 +1,7 @@
2010-12-22 Alejandro Valdes Jimenez <avaldes gnome org>
+ * src/gevicevte.py: added support for select words doing double click in vte terminal
+
+2010-12-22 Alejandro Valdes Jimenez <avaldes gnome org>
* src/gevicevte.py: set focus to VTE terminal.
2010-07-27 Alejandro Valdes Jimenez <avaldes gnome org>
diff --git a/src/gevicevte.py b/src/gevicevte.py
index 79544d8..cc354f7 100644
--- a/src/gevicevte.py
+++ b/src/gevicevte.py
@@ -17,7 +17,11 @@ class GeviceVte:
def the_focus (self,widget,event,terminal):
if (event.type==gtk.gdk.ENTER_NOTIFY):
terminal.grab_focus()
-
+
+ #def button_press (self,widget,event):
+ # if event.type == gtk.gdk._2BUTTON_PRESS:
+ # print "double click"
+
def new_terminal (self,gevice):
hbox_term = gtk.HBox(False,0)
@@ -29,9 +33,13 @@ class GeviceVte:
terminal.set_color_foreground(gtk.gdk.color_parse(gevice.gpref.forecolor))
terminal.set_size_request(10,10)
terminal.set_size (30,1)
- terminal.set_mouse_autohide (True)
+ terminal.set_mouse_autohide (True)
+
+ # capture word limited for characters when double click
+ terminal.set_word_chars("-A-Za-z0-9,./?%&#:_")
terminal.connect('event',self.the_focus,terminal)
+ #terminal.connect('button_press_event',self.button_press)
scroll = gtk.VScrollbar(terminal.get_adjustment())
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]