summaryrefslogtreecommitdiff
path: root/libcaja-private/caja-desktop-icon-file.c
diff options
context:
space:
mode:
Diffstat (limited to 'libcaja-private/caja-desktop-icon-file.c')
-rw-r--r--libcaja-private/caja-desktop-icon-file.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libcaja-private/caja-desktop-icon-file.c b/libcaja-private/caja-desktop-icon-file.c
index a91b926d..2ee911ab 100644
--- a/libcaja-private/caja-desktop-icon-file.c
+++ b/libcaja-private/caja-desktop-icon-file.c
@@ -186,8 +186,8 @@ update_info_from_link (CajaDesktopIconFile *icon_file)
return;
}
- eel_ref_str_unref (file->details->mime_type);
- file->details->mime_type = eel_ref_str_get_unique ("application/x-caja-link");
+ g_clear_pointer (&file->details->mime_type, g_ref_string_release);
+ file->details->mime_type = g_ref_string_new_intern ("application/x-caja-link");
file->details->type = G_FILE_TYPE_SHORTCUT;
file->details->size = 0;
file->details->has_permissions = FALSE;
@@ -293,7 +293,7 @@ caja_desktop_icon_file_new (CajaDesktopLink *link)
icon_file->details->link = link;
name = caja_desktop_link_get_file_name (link);
- file->details->name = eel_ref_str_new (name);
+ file->details->name = g_ref_string_new (name);
g_free (name);
update_info_from_link (icon_file);