Re: [PATCH] Add "Properties" to background context menu



Am Freitag, den 27.05.2005, 11:04 +0200 schrieb Alexander Larsson:
> On Fri, 2005-05-20 at 09:50 +0200, Luca Ferretti wrote:
> > It seems that the "Properties" menu entry is added to Desktop menu [...]
> > 
> > It's a sub-optimal behavior, not good for users. Alternatively:
> >      A. remove the "Properties" menu entry from the Desktop menu, or
> >      B. lists properties of the 'real' folder pointed by Desktop ($HOME
> >         or $HOME/Desktop
> > 
> > IMHO the A option is the best
> 
> I agree that A is best. Manny, wanna have a shot at it?

Proposed patch attached.

-- 
Christian Neumair <chris gnome-de org>
? src/file-manager/.exrc
? src/file-manager/fm-directory-view-menus.h
? src/file-manager/fm-directory-view-ops.h
Index: src/file-manager/fm-directory-view.c
===================================================================
RCS file: /cvs/gnome/nautilus/src/file-manager/fm-directory-view.c,v
retrieving revision 1.677
diff -u -p -r1.677 fm-directory-view.c
--- src/file-manager/fm-directory-view.c	26 May 2005 20:06:19 -0000	1.677
+++ src/file-manager/fm-directory-view.c	27 May 2005 10:02:10 -0000
@@ -6619,6 +6619,8 @@ real_update_menus (FMDirectoryView *view
 					      FM_ACTION_SELF_PROPERTIES);
 	gtk_action_set_sensitive (action,
 				  fm_directory_view_supports_properties (view));
+	gtk_action_set_visible (action,
+				!FM_IS_DESKTOP_ICON_VIEW (view));
 
 	action = gtk_action_group_get_action (view->details->dir_action_group,
 					      FM_ACTION_EMPTY_TRASH);


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