How to get file type when G_FILE_MONITOR_EVENT_DELETED?
- From: Vikram Ambrose <noel ambrose gmail com>
- To: gtk-list gnome org
- Subject: How to get file type when G_FILE_MONITOR_EVENT_DELETED?
- Date: Sun, 12 Dec 2010 03:09:47 -0500
How do you figure out the file type inside GFileMonitor's "changed"
callback when the GFileMonitorEvent is a G_FILE_MONITOR_EVENT_DELETED?
I was erroneously using g_file_query_file_type()!=G_FILE_TYPE_DIRECTORY,
without actually looking at the return value, until recently discovered
that since the GFile in question has just been deleted, it would always
return G_FILE_TYPE_UNKNOWN.
Vikram.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]