[gnome-terminal] Replace if 0 with correct conditional
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal] Replace if 0 with correct conditional
- Date: Tue, 10 Aug 2010 13:04:05 +0000 (UTC)
commit c0dfa55258d089cfce8f3dd2bb67dcbf23f5b85b
Author: Christian Persch <chpe gnome org>
Date: Tue Aug 10 15:03:18 2010 +0200
Replace if 0 with correct conditional
... in terminal-accels.c as well. Adds to the previous
commit 7b20f12bfaf8fdac24fa99a031d1bee11b3c23fc.
src/terminal-accels.c | 16 +++++++++++++++-
1 files changed, 15 insertions(+), 1 deletions(-)
---
diff --git a/src/terminal-accels.c b/src/terminal-accels.c
index afcb3b3..1338b5c 100644
--- a/src/terminal-accels.c
+++ b/src/terminal-accels.c
@@ -95,6 +95,20 @@
#define KEY_ZOOM_OUT CONF_KEYS_PREFIX "/zoom_out"
#define KEY_SWITCH_TAB_PREFIX CONF_KEYS_PREFIX "/switch_to_tab_"
+#if 1
+/*
+* We don't want to enable content saving until vte supports it async.
+* So we disable this code for stable versions.
+*/
+#include "terminal-version.h"
+
+#if (TERMINAL_MINOR_VERSION & 1) != 0
+#define ENABLE_SAVE
+#else
+#undef ENABLE_SAVE
+#endif
+#endif
+
typedef struct
{
const char *user_visible_name;
@@ -124,7 +138,7 @@ static KeyEntry file_entries[] =
KEY_NEW_WINDOW, ACCEL_PATH_NEW_WINDOW, GDK_SHIFT_MASK | GDK_CONTROL_MASK, GDK_n, NULL, FALSE, TRUE },
{ N_("New Profile"),
KEY_NEW_PROFILE, ACCEL_PATH_NEW_PROFILE, 0, 0, NULL, FALSE, TRUE },
-#if 0
+#ifdef ENABLE_SAVE
{ N_("Save Contents"),
KEY_SAVE_CONTENTS, ACCEL_PATH_SAVE_CONTENTS, 0, 0, NULL, FALSE, TRUE },
#endif
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]