[gnome-terminal] Enable "Save Contents" again
- From: Behdad Esfahbod <behdad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-terminal] Enable "Save Contents" again
- Date: Tue, 4 May 2010 02:20:26 +0000 (UTC)
commit d2fd62f189406b512d9550a571791de66b556d36
Author: Behdad Esfahbod <behdad behdad org>
Date: Mon May 3 21:56:01 2010 -0400
Enable "Save Contents" again
Was disabled for 2.30 release.
src/terminal-accels.c | 2 --
src/terminal-window.c | 7 +------
src/terminal.xml | 2 +-
3 files changed, 2 insertions(+), 9 deletions(-)
---
diff --git a/src/terminal-accels.c b/src/terminal-accels.c
index 6f15e95..90f8197 100644
--- a/src/terminal-accels.c
+++ b/src/terminal-accels.c
@@ -124,10 +124,8 @@ 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 c3aadc9..877bbf7 100644
--- a/src/terminal-window.c
+++ b/src/terminal-window.c
@@ -140,10 +140,8 @@ static void file_new_profile_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,
@@ -1759,11 +1757,9 @@ 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) },
@@ -3137,7 +3133,6 @@ 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)
{
@@ -3222,7 +3217,7 @@ file_save_contents_callback (GtkAction *action,
gtk_window_present (GTK_WINDOW (dialog));
}
-#endif
+
static void
file_close_tab_callback (GtkAction *action,
diff --git a/src/terminal.xml b/src/terminal.xml
index 7f0af85..3c9cbed 100644
--- a/src/terminal.xml
+++ b/src/terminal.xml
@@ -7,7 +7,7 @@
<menu action="FileNewTabProfiles" />
<separator />
<menuitem action="FileNewProfile" />
- <!-- <menuitem action="FileSaveContents" /> -->
+ <menuitem action="FileSaveContents" />
<separator />
<menuitem action="FileCloseTab" />
<menuitem action="FileCloseWindow" />
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]