gnome-terminal r3153 - trunk/src



Author: chpe
Date: Thu Oct  9 14:31:54 2008
New Revision: 3153
URL: http://svn.gnome.org/viewvc/gnome-terminal?rev=3153&view=rev

Log:
Bug 86119 â "select all" feature

Modified:
   trunk/src/terminal-window.c
   trunk/src/terminal.xml

Modified: trunk/src/terminal-window.c
==============================================================================
--- trunk/src/terminal-window.c	(original)
+++ trunk/src/terminal-window.c	Thu Oct  9 14:31:54 2008
@@ -133,6 +133,8 @@
                                                TerminalWindow *window);
 static void edit_paste_callback               (GtkAction *action,
                                                TerminalWindow *window);
+static void edit_select_all_callback          (GtkAction *action,
+                                               TerminalWindow *window);
 static void edit_keybindings_callback         (GtkAction *action,
                                                TerminalWindow *window);
 static void edit_profiles_callback            (GtkAction *action,
@@ -1472,6 +1474,9 @@
       { "EditPaste", GTK_STOCK_PASTE, NULL, "<shift><control>V",
         NULL,
         G_CALLBACK (edit_paste_callback) },
+      { "EditSelectAll", GTK_STOCK_SELECT_ALL, NULL, NULL,
+        NULL,
+        G_CALLBACK (edit_select_all_callback) },
       { "EditPasteURIPaths", GTK_STOCK_PASTE, N_("Paste _Filenames"), "",
         NULL,
         G_CALLBACK (edit_paste_callback) },
@@ -2894,6 +2899,18 @@
 }
 
 static void
+edit_select_all_callback (GtkAction *action,
+                          TerminalWindow *window)
+{
+  TerminalWindowPrivate *priv = window->priv;
+
+  if (!priv->active_screen)
+    return;
+
+  vte_terminal_select_all (VTE_TERMINAL (priv->active_screen));
+}
+      
+static void
 edit_keybindings_callback (GtkAction *action,
                            TerminalWindow *window)
 {

Modified: trunk/src/terminal.xml
==============================================================================
--- trunk/src/terminal.xml	(original)
+++ trunk/src/terminal.xml	Thu Oct  9 14:31:54 2008
@@ -15,6 +15,8 @@
       <menuitem action="EditCopy" />
       <menuitem action="EditPaste" />
       <separator />
+      <menuitem action="EditSelectAll" />
+      <separator />
       <menuitem action="EditProfiles" />
       <menuitem action="EditKeybindings" />
       <menuitem action="EditCurrentProfile" />



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