Top |
ThunarFolder * | thunar_folder_get_for_file () |
ThunarFile * | thunar_folder_get_corresponding_file () |
GHashTable * | thunar_folder_get_files () |
gboolean | thunar_folder_get_loading () |
gboolean | thunar_folder_has_folder_monitor () |
void | thunar_folder_reload () |
void | destroy | No Hooks |
void | error | Run Last |
void | files-added | Run Last |
void | files-changed | Run Last |
void | files-removed | Run Last |
void | thumbnails-updated | Run Last |
ThunarFolder *
thunar_folder_get_for_file (ThunarFile *file
);
Opens the specified file
as ThunarFolder and
returns a reference to the folder.
The caller is responsible to free the returned
object using g_object_unref()
when no longer
needed.
ThunarFile *
thunar_folder_get_corresponding_file (const ThunarFolder *folder
);
Returns the ThunarFile corresponding to this folder
.
No reference is taken on the returned ThunarFile for
the caller, so if you need a persistent reference to
the file, you'll have to call g_object_ref()
yourself.
GHashTable *
thunar_folder_get_files (const ThunarFolder *folder
);
Returns the hashtable of files currently known for folder
.
The data is owned by the ThunarFile instance and should not be modified or freed.
gboolean
thunar_folder_get_loading (const ThunarFolder *folder
);
Tells whether the contents of the folder
are currently
being loaded.
gboolean
thunar_folder_has_folder_monitor (const ThunarFolder *folder
);
Tells whether the folder
has a folder monitor running
void thunar_folder_reload (ThunarFolder *folder
,gboolean reload_info
);
Tells the folder
object to reread the directory
contents from the underlying media.
“corresponding-file”
property“corresponding-file” ThunarFile *
corresponding-file.
Owner: ThunarFolder
Flags: Read / Write / Construct Only
“destroy”
signalvoid user_function (ThunarFolder *folder, gpointer user_data)
Emitted when the ThunarFolder is destroyed.
Flags: No Hooks
“error”
signalvoid user_function (ThunarFolder *folder, gpointer error, gpointer user_data)
Emitted when the ThunarFolder fails to completly load the directory content because of an error.
folder |
a ThunarFolder. |
|
error |
the GError describing the problem. |
|
user_data |
user data set when the signal handler was connected. |
Flags: Run Last
“files-added”
signalvoid user_function (ThunarFolder *thunarfolder, gpointer arg1, gpointer user_data)
Emitted by the ThunarFolder whenever new files have been added to a particular folder.
Flags: Run Last
“files-changed”
signalvoid user_function (ThunarFolder *thunarfolder, gpointer arg1, gpointer user_data)
Flags: Run Last
“files-removed”
signalvoid user_function (ThunarFolder *thunarfolder, gpointer arg1, gpointer user_data)
Emitted by the ThunarFolder whenever a bunch of files is removed from the folder, which means they are not necessarily deleted from disk. This can be used to implement the reload of folders, which take longer to load.
Flags: Run Last
“thumbnails-updated”
signalvoid user_function (ThunarFolder *thunarfolder, gpointer arg1, gpointer user_data)
This signal is emitted on ThunarFolder whenever for the currently existing ThunarFile thumbnail status changes.
Flags: Run Last