nautilus r14314 - in branches/multiview: . src
- From: cneumair svn gnome org
- To: svn-commits-list gnome org
- Subject: nautilus r14314 - in branches/multiview: . src
- Date: Mon, 30 Jun 2008 18:44:30 +0000 (UTC)
Author: cneumair
Date: Mon Jun 30 18:44:30 2008
New Revision: 14314
URL: http://svn.gnome.org/viewvc/nautilus?rev=14314&view=rev
Log:
2008-06-30 Christian Neumair <cneumair gnome org>
* src/nautilus-navigation-window.c (notebook_popup_menu_show):
Only set move actions sensitive if tab can be moved to left/right. Add
separator between move and close actions.
Modified:
branches/multiview/ChangeLog
branches/multiview/src/nautilus-navigation-window.c
Modified: branches/multiview/src/nautilus-navigation-window.c
==============================================================================
--- branches/multiview/src/nautilus-navigation-window.c (original)
+++ branches/multiview/src/nautilus-navigation-window.c Mon Jun 30 18:44:30 2008
@@ -260,6 +260,10 @@
GtkWidget *item;
GtkWidget *image;
int button, event_time;
+ gboolean can_move_left, can_move_right;
+
+ can_move_left = nautilus_notebook_can_reorder_current_child_relative (NAUTILUS_NOTEBOOK (window->notebook), -1);
+ can_move_right = nautilus_notebook_can_reorder_current_child_relative (NAUTILUS_NOTEBOOK (window->notebook), 1);
popup = gtk_menu_new();
@@ -269,6 +273,7 @@
window);
gtk_menu_shell_append (GTK_MENU_SHELL (popup),
item);
+ gtk_widget_set_sensitive (item, can_move_left);
item = gtk_menu_item_new_with_mnemonic (_("Move Tab _Right"));
g_signal_connect (item, "activate",
@@ -276,6 +281,10 @@
window);
gtk_menu_shell_append (GTK_MENU_SHELL (popup),
item);
+ gtk_widget_set_sensitive (item, can_move_right);
+
+ gtk_menu_shell_append (GTK_MENU_SHELL (popup),
+ gtk_separator_menu_item_new ());
item = gtk_image_menu_item_new_with_mnemonic (_("_Close Tab"));
image = gtk_image_new_from_stock (GTK_STOCK_CLOSE, GTK_ICON_SIZE_MENU);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]