directory: implement dump

For debugging purposes on gdb.
This commit is contained in:
Carlos Soriano 2015-12-10 18:48:15 +01:00
parent ed16d51916
commit b3370181b6
2 changed files with 12 additions and 0 deletions

View file

@ -1728,6 +1728,16 @@ nautilus_directory_number_outstanding (void)
return directories ? g_hash_table_size (directories) : 0;
}
void
nautilus_directory_dump (NautilusDirectory *directory)
{
g_autofree gchar *uri;
uri = g_file_get_uri (directory->details->location);
g_print ("uri: %s\n", uri);
g_print ("ref count: %d\n", G_OBJECT (directory)->ref_count);
}
void
nautilus_self_check_directory (void)
{

View file

@ -231,5 +231,7 @@ GList * nautilus_directory_list_sort_by_uri (GList
gboolean nautilus_directory_is_editable (NautilusDirectory *directory);
void nautilus_directory_dump (NautilusDirectory *directory);
#endif /* NAUTILUS_DIRECTORY_H */