[gnome-terminal] Hide the Save Contents menu entry
- From: Christian Persch <chpe src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal] Hide the Save Contents menu entry
- Date: Sun, 14 Mar 2010 22:00:39 +0000 (UTC)
commit 0db44783cef479e6f91b2b70f3dbe437f6a27615
Author: Christian Persch <chpe gnome org>
Date: Thu Mar 11 21:09:17 2010 +0100
Hide the Save Contents menu entry
VTE still lacks API to do the save asynchronously, so hide this feature
for now.
src/terminal-accels.c | 2 ++
src/terminal-window.c | 7 ++++++-
2 files changed, 8 insertions(+), 1 deletions(-)
---
diff --git a/src/terminal-accels.c b/src/terminal-accels.c
index 90f8197..6f15e95 100644
--- a/src/terminal-accels.c
+++ b/src/terminal-accels.c
@@ -124,8 +124,10 @@ 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
{ N_("Save Contents"),
KEY_SAVE_CONTENTS, ACCEL_PATH_SAVE_CONTENTS, 0, 0, NULL, FALSE, TRUE },
+#endif
{ N_("Close Tab"),
KEY_CLOSE_TAB, ACCEL_PATH_CLOSE_TAB, GDK_SHIFT_MASK | GDK_CONTROL_MASK, GDK_w, NULL, FALSE, TRUE },
{ N_("Close Window"),
diff --git a/src/terminal-window.c b/src/terminal-window.c
index f872c58..7afd625 100644
--- a/src/terminal-window.c
+++ b/src/terminal-window.c
@@ -136,8 +136,10 @@ static void file_new_tab_callback (GtkAction *action,
TerminalWindow *window);
static void file_close_window_callback (GtkAction *action,
TerminalWindow *window);
+#if 0
static void file_save_contents_callback (GtkAction *action,
TerminalWindow *window);
+#endif
static void file_close_tab_callback (GtkAction *action,
TerminalWindow *window);
static void edit_copy_callback (GtkAction *action,
@@ -1725,9 +1727,11 @@ terminal_window_init (TerminalWindow *window)
{ "FileNewProfile", GTK_STOCK_OPEN, N_("New _Profileâ?¦"), "",
NULL,
G_CALLBACK (file_new_profile_callback) },
+#if 0
{ "FileSaveContents", GTK_STOCK_SAVE, N_("_Save Contents"), "",
NULL,
G_CALLBACK (file_save_contents_callback) },
+#endif
{ "FileCloseTab", GTK_STOCK_CLOSE, N_("C_lose Tab"), "<shift><control>W",
NULL,
G_CALLBACK (file_close_tab_callback) },
@@ -3072,6 +3076,7 @@ file_close_window_callback (GtkAction *action,
gtk_widget_destroy (GTK_WIDGET (window));
}
+#if 0
static void
save_contents_dialog_on_response (GtkDialog *dialog, gint response_id, gpointer terminal)
{
@@ -3156,7 +3161,7 @@ file_save_contents_callback (GtkAction *action,
gtk_window_present (GTK_WINDOW (dialog));
}
-
+#endif
static void
file_close_tab_callback (GtkAction *action,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]