Here is a working version :) tested :)

Please put it for 9.2 ;)

Le ven 29/08/2003 à 22:53, Bellegarde Cédric a écrit :
> I've make a stupid thing :)
> please wait for another patch, you can apply this one, it works but it's
> stupid and you will not able to change gnome menu groups in
> applications:///... not very important for mandrake.
> 
> Le ven 29/08/2003 à 22:36, Bellegarde Cédric a écrit :
> > 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,2975
> 
> /* 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;
> 		}
> 	}
> 	
> 	nautilus_file_list_free (selection);
> 
> 	return desk_link;
> }
> 
4760a4793
> 	gboolean selection_contains_desktop_link;
4780a4814
> 	selection_contains_desktop_link = desktop_link_in_selection (view);
4965,4966c4999,5002
< 				    ! vfolder_directory);
< 
---
> 				    ( ! vfolder_directory && \
> 				      ! selection_contains_desktop_link) || \
> 				        selection_contains_special_link );
> 		

Reply via email to