[nautilus] file: don't consider all desktop files nautilus links
- From: Cosimo Cecchi <cosimoc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [nautilus] file: don't consider all desktop files nautilus links
- Date: Thu, 8 Mar 2012 00:30:59 +0000 (UTC)
commit b241fd28913e87fe01419e4922259949a11c973f
Author: Cosimo Cecchi <cosimoc gnome org>
Date: Wed Mar 7 14:07:47 2012 -0500
file: don't consider all desktop files nautilus links
Only those which match application/x-desktop directly.
libnautilus-private/nautilus-file.c | 8 +++++---
1 files changed, 5 insertions(+), 3 deletions(-)
---
diff --git a/libnautilus-private/nautilus-file.c b/libnautilus-private/nautilus-file.c
index 649db49..e2b14a7 100644
--- a/libnautilus-private/nautilus-file.c
+++ b/libnautilus-private/nautilus-file.c
@@ -6791,9 +6791,11 @@ nautilus_file_get_symbolic_link_target_uri (NautilusFile *file)
gboolean
nautilus_file_is_nautilus_link (NautilusFile *file)
{
- /* NOTE: I removed the historical link here, because i don't think we
- even detect that mimetype anymore */
- return nautilus_file_is_mime_type (file, "application/x-desktop");
+ if (file->details->mime_type == NULL) {
+ return FALSE;
+ }
+ return g_content_type_equals (eel_ref_str_peek (file->details->mime_type),
+ "application/x-desktop");
}
/**
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]