mirror of
https://gitlab.gnome.org/GNOME/nautilus
synced 2024-11-05 16:04:31 +00:00
directory: implement dump
For debugging purposes on gdb.
This commit is contained in:
parent
ed16d51916
commit
b3370181b6
2 changed files with 12 additions and 0 deletions
|
@ -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)
|
||||
{
|
||||
|
|
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue