gnome-terminal r3169 - branches/gnome-2-24/src



Author: chpe
Date: Mon Oct 13 18:52:14 2008
New Revision: 3169
URL: http://svn.gnome.org/viewvc/gnome-terminal?rev=3169&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:
   branches/gnome-2-24/src/terminal-window.c

Modified: branches/gnome-2-24/src/terminal-window.c
==============================================================================
--- branches/gnome-2-24/src/terminal-window.c	(original)
+++ branches/gnome-2-24/src/terminal-window.c	Mon Oct 13 18:52:14 2008
@@ -1585,6 +1585,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]