summaryrefslogtreecommitdiff
path: root/src/nautilus-empty-view.c
diff options
context:
space:
mode:
authorCosimo Cecchi <cosimoc@gnome.org>2013-04-08 18:30:54 -0400
committerCosimo Cecchi <cosimoc@gnome.org>2013-04-08 18:30:54 -0400
commitcb2713d18f3a7e9ab5811fb92e47d7b5182745de (patch)
tree68a0d9dadfbdb5dbbbc8555e36f4a9342bc1d1f2 /src/nautilus-empty-view.c
parentb3d2fb51de2e9abe643ab8ff9edf3f0e5af52ff7 (diff)
downloadnautilus-cb2713d18f3a7e9ab5811fb92e47d7b5182745de.tar.gz
view-factory: remove supports_uri()
There's really no use for this in the current Nautilus, and we're getting rid of nautilus-view-factory.
Diffstat (limited to 'src/nautilus-empty-view.c')
-rw-r--r--src/nautilus-empty-view.c24
1 files changed, 1 insertions, 23 deletions
diff --git a/src/nautilus-empty-view.c b/src/nautilus-empty-view.c
index 58200380e..a9208b772 100644
--- a/src/nautilus-empty-view.c
+++ b/src/nautilus-empty-view.c
@@ -313,27 +313,6 @@ nautilus_empty_view_create (NautilusWindowSlot *slot)
return NAUTILUS_VIEW (view);
}
-static gboolean
-nautilus_empty_view_supports_uri (const char *uri,
- GFileType file_type,
- const char *mime_type)
-{
- if (file_type == G_FILE_TYPE_DIRECTORY) {
- return TRUE;
- }
- if (strcmp (mime_type, NAUTILUS_SAVED_SEARCH_MIMETYPE) == 0){
- return TRUE;
- }
- if (g_str_has_prefix (uri, "trash:")) {
- return TRUE;
- }
- if (g_str_has_prefix (uri, EEL_SEARCH_URI)) {
- return TRUE;
- }
-
- return FALSE;
-}
-
static NautilusViewInfo nautilus_empty_view = {
NAUTILUS_EMPTY_VIEW_ID,
"Empty",
@@ -341,8 +320,7 @@ static NautilusViewInfo nautilus_empty_view = {
"_Empty View",
"The empty view encountered an error.",
"Display this location with the empty view.",
- nautilus_empty_view_create,
- nautilus_empty_view_supports_uri
+ nautilus_empty_view_create
};
void