[gnome-terminal/gnome-2-28] Allow unlimited scrollback



commit cc0006d7d66696af349f28dbd9d00be966d1c586
Author: Christian Persch <chpe gnome org>
Date:   Mon Sep 28 22:11:42 2009 +0200

    Allow unlimited scrollback
    
    Vte 0.22 implements an efficient store of the scrollback, so we can
    allow unlimited number of lines here.

 configure.ac           |    2 +-
 src/terminal-profile.c |    4 +---
 2 files changed, 2 insertions(+), 4 deletions(-)
---
diff --git a/configure.ac b/configure.ac
index d77129e..5655a80 100644
--- a/configure.ac
+++ b/configure.ac
@@ -44,7 +44,7 @@ GTK_REQUIRED=2.14.0
 GCONF_REQUIRED=2.14.0
 STARTUP_NOTIFICATION_REQUIRED=0.8
 DBUS_GLIB_REQUIRED=0.6
-VTE_REQUIRED=0.21.5
+VTE_REQUIRED=0.22.0
 
 PKG_CHECK_MODULES([TERM],
   [vte >= $VTE_REQUIRED
diff --git a/src/terminal-profile.c b/src/terminal-profile.c
index cafb71d..3e8f08a 100644
--- a/src/terminal-profile.c
+++ b/src/terminal-profile.c
@@ -150,8 +150,6 @@ enum
 #define DEFAULT_VISIBLE_NAME          (N_("Unnamed"))
 #define DEFAULT_WORD_CHARS            ("-A-Za-z0-9,./?%&#:_=+ ~")
 
-#define MAX_SCROLLBACK_LINES          (10000000)
-
 struct _TerminalProfilePrivate
 {
   GValueArray *properties;
@@ -1305,7 +1303,7 @@ terminal_profile_class_init (TerminalProfileClass *klass)
   TERMINAL_PROFILE_PROPERTY_ENUM (SCROLLBAR_POSITION, TERMINAL_TYPE_SCROLLBAR_POSITION, DEFAULT_SCROLLBAR_POSITION, KEY_SCROLLBAR_POSITION);
   TERMINAL_PROFILE_PROPERTY_ENUM (TITLE_MODE, TERMINAL_TYPE_TITLE_MODE, DEFAULT_TITLE_MODE, KEY_TITLE_MODE);
 
-  TERMINAL_PROFILE_PROPERTY_INT (SCROLLBACK_LINES, 1, MAX_SCROLLBACK_LINES, DEFAULT_SCROLLBACK_LINES, KEY_SCROLLBACK_LINES);
+  TERMINAL_PROFILE_PROPERTY_INT (SCROLLBACK_LINES, 1, G_MAXINT, DEFAULT_SCROLLBACK_LINES, KEY_SCROLLBACK_LINES);
 
   TERMINAL_PROFILE_PROPERTY_OBJECT (BACKGROUND_IMAGE, GDK_TYPE_PIXBUF, NULL);
 



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]