Commit 62da3b59 authored by Alexander Larsson's avatar Alexander Larsson Committed by Alexander Larsson
Browse files

Don't add recent files for non-gnome-vfs uris (such as

2004-08-17  Alexander Larsson  <alexl@redhat.com>

	* src/file-manager/fm-directory-view.c (fm_directory_view_launch_application):
	Don't add recent files for non-gnome-vfs uris (such as x-nautilus-desktop://)
parent 346dd0b4
2004-08-17 Alexander Larsson <alexl@redhat.com>
* src/file-manager/fm-directory-view.c (fm_directory_view_launch_application):
Don't add recent files for non-gnome-vfs uris (such as x-nautilus-desktop://)
2004-08-16 Christian Rose <menthos@menthos.com>
 
* configure.in: Added "bs" to ALL_LINGUAS.
......
......@@ -631,6 +631,7 @@ fm_directory_view_launch_application (GnomeVFSMimeApplication *application,
FMDirectoryView *directory_view)
{
char *uri;
GnomeVFSURI *vfs_uri;
g_assert (application != NULL);
g_assert (NAUTILUS_IS_FILE (file));
......@@ -642,7 +643,13 @@ fm_directory_view_launch_application (GnomeVFSMimeApplication *application,
uri = nautilus_file_get_uri (file);
egg_recent_model_add (nautilus_recent_get_model (), uri);
/* Only add real gnome-vfs uris to recent. Not things like
trash:// and x-nautilus-desktop:// */
vfs_uri = gnome_vfs_uri_new (uri);
if (vfs_uri != NULL) {
egg_recent_model_add (nautilus_recent_get_model (), uri);
gnome_vfs_uri_unref (vfs_uri);
}
g_free (uri);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment