Here is a patch :)

to apply it:

patch nautilus-2.3.9/src/file-manager/fm-directory-view.c <
desktop.patch


Le ven 29/08/2003 à 00:48, Frederic Crozat a écrit : 
> Le Thu, 28 Aug 2003 21:01:56 +0200, Bellegarde Cédric a écrit :
> 
> > Since gnome-2.2, we can't edit items on gnome-desktop. The function
> > always exist  ("editer le lanceur" in french) but only in
> > applications:///. gnome-2.4 will be out soon and function is always
> > unavailable. It will be cool to add a little patch to add an item in
> > gnome-desktop/nautilus menu :)
> 
> Fill a bug report.. With a patch, it is even better :)
2943a2944,2973
> 
> /* desktop_link_in_selection
>  * 
>  * Return TRUE if a desktop launcher is in the selection.
>  */
>  
> static gboolean
> desktop_link_in_selection (FMDirectoryView *view)
> {
> 	gboolean desk_link;
> 	GList *selection, *node;
> 	NautilusFile *file;
> 	
>         g_return_val_if_fail (FM_IS_DIRECTORY_VIEW (view), FALSE);
> 
>         desk_link = FALSE;
> 	
>         selection = fm_directory_view_get_selection (FM_DIRECTORY_VIEW (view));
> 
> 	for (node = selection; node != NULL; node = node->next) {
> 		file = NAUTILUS_FILE (node->data);
> 		desk_link = nautilus_file_is_nautilus_link(file);
> 		if ( desk_link) {
> 			break;
> 		}
> 	}
> 	
> 	return desk_link;
> }
> 
4760a4791
> 	gboolean selection_contains_desktop_link;
4780a4812
> 	selection_contains_desktop_link = desktop_link_in_selection (view);
4965c4997,4998
< 				    ! vfolder_directory);
---
> 				    ! selection_contains_desktop_link && \
> 				    ! selection_contains_special_link);

Reply via email to