1 --- src/sakura.c 2010-04-17 05:36:17.000000000 +0400
2 +++ src/sakura.c 2010-11-05 16:58:18.090740617 +0300
14 #define ICON_FILE "terminal-tango.svg"
15 -#define SCROLL_LINES 4096
16 #define HTTP_REGEXP "(ftp|http)s?://[-a-zA-Z0-9.?$%&/=_~#.,:;+]*"
17 #define CONFIGFILE "sakura.conf"
18 +#define DEFAULT_SCROLL_LINES 4096
19 #define DEFAULT_COLUMNS 80
20 #define DEFAULT_ROWS 24
21 #define DEFAULT_FONT "monospace 11"
22 @@ -1578,6 +1579,11 @@
26 + if (!g_key_file_has_key(sakura.cfg, cfg_group, "scroll_lines", NULL)) {
27 + g_key_file_set_integer(sakura.cfg, cfg_group, "scroll_lines", DEFAULT_SCROLL_LINES);
29 + sakura.scroll_lines = g_key_file_get_integer(sakura.cfg, cfg_group, "scroll_lines", NULL);
31 if (!g_key_file_has_key(sakura.cfg, cfg_group, "add_tab_accelerator", NULL)) {
32 g_key_file_set_integer(sakura.cfg, cfg_group, "add_tab_accelerator", DEFAULT_ADD_TAB_ACCELERATOR);
35 gtk_widget_show_all(tab_hbox);
38 - vte_terminal_set_scrollback_lines(VTE_TERMINAL(term->vte), SCROLL_LINES);
39 + vte_terminal_set_scrollback_lines(VTE_TERMINAL(term->vte), sakura.scroll_lines);
40 vte_terminal_match_add_gregex(VTE_TERMINAL(term->vte), sakura.http_regexp, 0);
41 vte_terminal_set_mouse_autohide(VTE_TERMINAL(term->vte), TRUE);