Skip to content
Snippets Groups Projects
Commit 37522842 authored by Bassam's avatar Bassam Committed by Alexander Schwinn
Browse files

Add basic support for gtk-recent (Issue #257)

parent 39e2fc9b
No related branches found
No related tags found
No related merge requests found
......@@ -129,8 +129,21 @@ thunar_io_scan_directory (ThunarJob *job,
}
}
/* create GFile for the child */
child_file = g_file_get_child (file, g_file_info_get_name (info));
/* check if file has 'recent' URI scheme */
if (g_file_has_uri_scheme (file, "recent"))
{
/* create Gfile using the target URI */
child_file = g_file_new_for_uri(g_file_info_get_attribute_string (info, G_FILE_ATTRIBUTE_STANDARD_TARGET_URI));
/* create new file info using Gfile*/
g_object_unref(info);
info = g_file_query_info (child_file, namespace, flags, cancellable, &err);
}
else
{
/* create GFile for the child */
child_file = g_file_get_child (file, g_file_info_get_name (info));
}
if (return_thunar_files)
{
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment