[vte/vte-next: 198/223] vteapp: Add option to specify the word-chars property
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [vte/vte-next: 198/223] vteapp: Add option to specify the word-chars property
- Date: Wed, 22 Jun 2011 21:05:14 +0000 (UTC)
commit 804cc7595c6abf918f3536396db7c1b6dac2688d
Author: Christian Persch <chpe gnome org>
Date: Sat Jun 18 16:17:49 2011 +0200
vteapp: Add option to specify the word-chars property
For testing purposes, add --word-chars to allow overriding the
default word chars.
src/vteapp.c | 10 ++++++++++
1 files changed, 10 insertions(+), 0 deletions(-)
---
diff --git a/src/vteapp.c b/src/vteapp.c
index 1b00747..da45298 100644
--- a/src/vteapp.c
+++ b/src/vteapp.c
@@ -622,6 +622,7 @@ main(int argc, char **argv)
char *css_file = NULL;
char *selection_background_color_string = NULL;
char **dingus = NULL;
+ char *word_chars = NULL;
const GOptionEntry options[]={
{
"background", 'B', 0,
@@ -784,6 +785,11 @@ main(int argc, char **argv)
G_OPTION_ARG_FILENAME, &css_file,
"CSS File", "FILE"
},
+ {
+ "word-chars", 0, 0,
+ G_OPTION_ARG_STRING, &word_chars,
+ "Word chars", "CHARS"
+ },
{ NULL }
};
GOptionContext *context;
@@ -1030,6 +1036,10 @@ main(int argc, char **argv)
add_dingus (terminal, dingus);
g_strfreev (dingus);
}
+ if (word_chars) {
+ vte_terminal_set_word_chars(terminal, word_chars);
+ g_free(word_chars);
+ }
if (console) {
/* Open a "console" connection. */
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]