diff options
author | monsta <[email protected]> | 2016-08-23 16:02:36 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2016-08-23 16:02:36 +0300 |
commit | fafdebc5741aef1b6eb64db0a0447eb0210ee186 (patch) | |
tree | cc8f3ba2885fc12f4bd614865e5a68ab7c5f231b /libcaja-extension/caja-file-info.c | |
parent | 3b62e6d5d6fe861e8be862b0a20ba32fdf05e701 (diff) | |
download | caja-fafdebc5741aef1b6eb64db0a0447eb0210ee186.tar.bz2 caja-fafdebc5741aef1b6eb64db0a0447eb0210ee186.tar.xz |
libcaja-extension: fix docs generation and fix some indent
docs are still far from perfect, but most build warnings are gone
Diffstat (limited to 'libcaja-extension/caja-file-info.c')
-rw-r--r-- | libcaja-extension/caja-file-info.c | 21 |
1 files changed, 15 insertions, 6 deletions
diff --git a/libcaja-extension/caja-file-info.c b/libcaja-extension/caja-file-info.c index 17a96908..61f37b6d 100644 --- a/libcaja-extension/caja-file-info.c +++ b/libcaja-extension/caja-file-info.c @@ -26,6 +26,16 @@ CajaFileInfo *(*caja_file_info_getter) (GFile *location, gboolean create); /** + * SECTION:caja-file-info + * @title: CajaFileInfo + * @short_description: File interface for caja extensions + * @include: libcaja-extension/caja-file-info.h + * + * #CajaFileInfo provides methods to get and modify information + * about file objects in the file manager. + */ + +/** * caja_file_info_list_copy: * @files: (element-type CajaFileInfo): the files to copy * @@ -76,10 +86,8 @@ caja_file_info_get_type (void) { static GType type = 0; - if (!type) - { - const GTypeInfo info = - { + if (!type) { + const GTypeInfo info = { sizeof (CajaFileInfoIface), caja_file_info_base_init, NULL, @@ -141,6 +149,7 @@ caja_file_info_get_location (CajaFileInfo *file) return CAJA_FILE_INFO_GET_IFACE (file)->get_location (file); } + char * caja_file_info_get_uri (CajaFileInfo *file) { @@ -243,7 +252,7 @@ caja_file_info_is_mime_type (CajaFileInfo *file, g_return_val_if_fail (CAJA_FILE_INFO_GET_IFACE (file)->is_mime_type != NULL, FALSE); return CAJA_FILE_INFO_GET_IFACE (file)->is_mime_type (file, - mime_type); + mime_type); } gboolean @@ -297,7 +306,7 @@ caja_file_info_add_string_attribute (CajaFileInfo *file, g_return_if_fail (value != NULL); CAJA_FILE_INFO_GET_IFACE (file)->add_string_attribute - (file, attribute_name, value); + (file, attribute_name, value); } void |