Commit bf2e70ac authored by Alexander Larsson's avatar Alexander Larsson Committed by Alexander Larsson

No need to get the uri to figure out if the directory is in the trash,

2007-12-07  Alexander Larsson  <alexl@redhat.com>

	* libnautilus-private/nautilus-directory.c (nautilus_directory_is_in_trash):
	No need to get the uri to figure out if the
	directory is in the trash, just use
	g_file_has_uri_scheme().


svn path=/trunk/; revision=13506
parent 3f48f21e
2007-12-07 Alexander Larsson <alexl@redhat.com>
* libnautilus-private/nautilus-directory.c (nautilus_directory_is_in_trash):
No need to get the uri to figure out if the
directory is in the trash, just use
g_file_has_uri_scheme().
2007-12-07 Alexander Larsson <alexl@redhat.com>
* src/nautilus-places-sidebar.c:
......
......@@ -576,21 +576,13 @@ nautilus_directory_is_local (NautilusDirectory *directory)
gboolean
nautilus_directory_is_in_trash (NautilusDirectory *directory)
{
char *uri;
gboolean res;
g_assert (NAUTILUS_IS_DIRECTORY (directory));
if (directory->details->location == NULL) {
return FALSE;
}
/* TODO-gio: Should have g_file_is_in_trash()? */
uri = nautilus_directory_get_uri (directory);
res = eel_uri_is_trash (uri);
g_free (uri);
return res;
return g_file_has_uri_scheme (directory->details->location, "trash");
}
gboolean
......
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