gnome-terminal r3160 - trunk/src



Author: chpe
Date: Mon Oct 13 18:43:29 2008
New Revision: 3160
URL: http://svn.gnome.org/viewvc/gnome-terminal?rev=3160&view=rev

Log:
Hide the paste-as-uri action by default, so the Edit menu doesn't flash
the first time it's shown and there's no text/uri-list on the clipboard.

Modified:
   trunk/src/terminal-window.c

Modified: trunk/src/terminal-window.c
==============================================================================
--- trunk/src/terminal-window.c	(original)
+++ trunk/src/terminal-window.c	Mon Oct 13 18:43:29 2008
@@ -1693,6 +1693,12 @@
   g_signal_connect (action, "activate",
                     G_CALLBACK (edit_menu_activate_callback), window);
 
+  /* Set this action invisible so the Edit menu doesn't flash the first
+   * time it's shown and there's no text/uri-list on the clipboard.
+   */
+  action = gtk_action_group_get_action (priv->action_group, "EditPasteURIPaths");
+  gtk_action_set_visible (action, FALSE);
+
   /* Load the UI */
   error = NULL;
   priv->ui_id = gtk_ui_manager_add_ui_from_file (manager,



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