Scripts folder fixup



Before I submit a bug on this, I want to know if this direction is
something the Nautilus team is interested.  It seems that in GNOME 2.4,
Nautilus will no longer display a menu item for the Scripts folder
unless a script exists in that folder.  This can make it hard for new
users to find the scripts directory to add news scripts.

The attached patch adds a Scripts menu item no matter what, but pretties
it up a bit so you don't get a menu separator if there are no scripts to
show.  Is this a reasonable feature request, or is the Nautilus team set
on the current functionality?  Thanks.

Joe

-- 
Joe Marcus Clarke
FreeBSD GNOME Team	::	gnome FreeBSD org
FreeNode / #freebsd-gnome
http://www.FreeBSD.org/gnome
--- src/file-manager/fm-directory-view.c.orig	Thu Oct  2 23:30:40 2003
+++ src/file-manager/fm-directory-view.c	Thu Oct  2 23:52:04 2003
@@ -4314,19 +4314,25 @@
 
 	nautilus_bonobo_set_hidden (view->details->ui, 
 				    FM_DIRECTORY_VIEW_MENU_PATH_SCRIPTS, 
-				    !any_scripts);
+				    FALSE);
 	nautilus_bonobo_set_hidden (view->details->ui, 
 				    FM_DIRECTORY_VIEW_POPUP_PATH_SCRIPTS, 
+				    FALSE);
+	nautilus_bonobo_set_hidden (view->details->ui,
+				    FM_DIRECTORY_VIEW_MENU_PATH_SCRIPTS_PLACEHOLDER,
+				    !any_scripts);
+	nautilus_bonobo_set_hidden (view->details->ui,
+				    FM_DIRECTORY_VIEW_POPUP_PATH_BACKGROUND_SCRIPTS_PLACEHOLDER,
 				    !any_scripts);
 	nautilus_bonobo_set_hidden (view->details->ui, 
 				    FM_DIRECTORY_VIEW_POPUP_PATH_BACKGROUND_SCRIPTS, 
-				    !any_scripts);
+				    FALSE);
 	nautilus_bonobo_set_hidden (view->details->ui, 
 				    FM_DIRECTORY_VIEW_MENU_PATH_SCRIPTS_SEPARATOR, 
 				    !any_scripts);
 	nautilus_bonobo_set_hidden (view->details->ui, 
 				    FM_DIRECTORY_VIEW_POPUP_PATH_SCRIPTS_SEPARATOR, 
-				    !any_scripts);
+				    FALSE);
 	nautilus_bonobo_set_hidden (view->details->ui, 
 				    FM_DIRECTORY_VIEW_POPUP_PATH_BACKGROUND_SCRIPTS_SEPARATOR, 
 				    !any_scripts);

Attachment: signature.asc
Description: This is a digitally signed message part



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