Functions¶
|
|
|
|
|
Details¶
- Thunarx.check_version(required_major, required_minor, required_micro)¶
- Parameters:
- Returns:
None
if the library is compatible with the given version, or a string describing the version mismatch. The returned string is owned by the library and must not be freed or modified by the caller.- Return type:
Checks that the thunarx library in use is compatible with the given version. Generally you would pass in the constants
Thunarx.MAJOR_VERSION
,Thunarx.MINOR_VERSION
and #THUNARX_VERSION_MICRO as the three arguments to this function; that produces a check that the library in use is compatible with the version ofthunarx the extension was compiled against.
This function should be called by extensions in the thunar_extension_initialize() method to verify that the thunarx library used by file manager is compatible with the version the extension was compiled with.
- Checking the runtime version of the Thunar Extension library
const gchar *mismatch; mismatch = thunarx_check_version (THUNARX_VERSION_MAJOR, THUNARX_VERSION_MINOR, THUNARX_VERSION_MICRO); if (G_UNLIKELY (mismatch != NULL)) g_error ("Version mismatch: %<!---->s", mismatch);
- Thunarx.file_info_list_copy(file_infos)¶
- Parameters:
file_infos ([
Thunarx.FileInfo
]) – aGLib.List
ofThunarx.FileInfo
<!—->s.- Returns:
a copy of file_infos.
- Return type:
Does a deep copy of file_infos and returns the new list.
- Thunarx.file_info_list_free(file_infos)¶
- Parameters:
file_infos ([
Thunarx.FileInfo
]) – aGLib.List
ofThunarx.FileInfo
<!—->s.
Frees the resources allocated for the file_infos list and decreases the reference count on the
Thunarx.FileInfo
<!—->s contained within.