[nautilus] Don't allow "New tab" (Ctrl+T) shortcut in desktop window
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] Don't allow "New tab" (Ctrl+T) shortcut in desktop window
- Date: Thu, 1 Dec 2011 21:07:11 +0000 (UTC)
commit 7e351fd5ead64be1343eea6d357a2edb25f9a721
Author: Dmitry Shachnev <mitya57 gmail com>
Date: Thu Dec 1 16:05:19 2011 -0500
Don't allow "New tab" (Ctrl+T) shortcut in desktop window
Disable the New Tab action on the desktop.
https://bugzilla.gnome.org/show_bug.cgi?id=655256
src/nautilus-desktop-window.c | 5 +++++
1 files changed, 5 insertions(+), 0 deletions(-)
---
diff --git a/src/nautilus-desktop-window.c b/src/nautilus-desktop-window.c
index 5d4281f..a8f7d7f 100644
--- a/src/nautilus-desktop-window.c
+++ b/src/nautilus-desktop-window.c
@@ -76,6 +76,11 @@ nautilus_desktop_window_constructed (GObject *obj)
NAUTILUS_ACTION_CLOSE);
gtk_action_set_sensitive (action, FALSE);
+ /* Don't allow new tab on desktop */
+ action = gtk_action_group_get_action (NAUTILUS_WINDOW (window)->details->main_action_group,
+ NAUTILUS_ACTION_NEW_TAB);
+ gtk_action_set_sensitive (action, FALSE);
+
/* Set the accessible name so that it doesn't inherit the cryptic desktop URI. */
accessible = gtk_widget_get_accessible (GTK_WIDGET (window));
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]