Skip to content

Commit 570fd9b

Browse files
committed
fixing the double click behavior by adding a
new (and hidden) gconf schema
1 parent 87726e3 commit 570fd9b

File tree

3 files changed

+33
-0
lines changed

3 files changed

+33
-0
lines changed

ChangeLog

+9
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,12 @@
1+
2008-07-08 Lincoln de Sousa <[email protected]>
2+
3+
Bug #31 - Double click behavior
4+
5+
* src/guake.py (Guake.add_tab): Setting word_chars of each new
6+
terminal.
7+
8+
* data/guake.schemas: Adding word_chars property in guake schemas.
9+
110
2008-06-26 Gabriel Falcão <[email protected]>
211

312
* data/guake.1: Added.

data/guake.schemas

+20
Original file line numberDiff line numberDiff line change
@@ -296,5 +296,25 @@
296296
</locale>
297297
</schema>
298298

299+
<!-- These options are not shown in guake-prefs window to
300+
avoid bloating that pretty ui =) -->
301+
302+
<schema>
303+
<key>/schemas/apps/guake/general/word_chars</key>
304+
<applyto>/apps/guake/general/word_chars</applyto>
305+
<owner>guake</owner>
306+
<type>string</type>
307+
<default>-A-Za-z0-9,./?%&amp;#:_</default>
308+
<locale name="C">
309+
<!-- these comments were stolen from gnome-terminal,
310+
thanks gnome-temrinal buddies -->
311+
<short>Characters that are considered "part of a word"</short>
312+
<long>When selecting text by word, sequences of these
313+
characters are considered single words. Ranges can be
314+
given as "A-Z". Literal hyphen (not expressing a
315+
range) should be the first character given. </long>
316+
</locale>
317+
</schema>
318+
299319
</schemalist>
300320
</gconfschemafile>

src/guake.py

+4
Original file line numberDiff line numberDiff line change
@@ -983,6 +983,10 @@ def add_tab(self):
983983
last_added = len(self.term_list)
984984
self.term_list.append(vte.Terminal())
985985

986+
# setting the word chars in the terminal
987+
word_chars = self.client.get_string(GCONF_PATH+'general/word_chars')
988+
self.term_list[last_added].set_word_chars(word_chars)
989+
986990
shell_name = self.client.get_string(GCONF_PATH+'general/default_shell')
987991
directory = os.path.expanduser('~')
988992
pid = self.term_list[last_added].\

0 commit comments

Comments
 (0)