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-column.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-column.c')
-rw-r--r-- | libcaja-extension/caja-column.c | 25 |
1 files changed, 17 insertions, 8 deletions
diff --git a/libcaja-extension/caja-column.c b/libcaja-extension/caja-column.c index ce0d2c33..bd3a23f3 100644 --- a/libcaja-extension/caja-column.c +++ b/libcaja-extension/caja-column.c @@ -26,8 +26,7 @@ #include "caja-column.h" #include "caja-extension-i18n.h" -enum -{ +enum { PROP_0, PROP_NAME, PROP_ATTRIBUTE, @@ -38,8 +37,7 @@ enum LAST_PROP }; -struct _CajaColumnDetails -{ +struct _CajaColumnDetails { char *name; GQuark attribute; char *label; @@ -50,6 +48,19 @@ struct _CajaColumnDetails G_DEFINE_TYPE (CajaColumn, caja_column, G_TYPE_OBJECT); /** + * SECTION:caja-column + * @title: CajaColumn + * @short_description: List view column descriptor object + * @include: libcaja-extension/caja-column.h + * + * #CajaColumn is an object that describes a column in the file manager + * list view. Extensions can provide #CajaColumn by registering a + * #CajaColumnProvider and returning them from + * caja_column_provider_get_columns(), which will be called by the main + * application when creating a view. + */ + +/** * caja_column_new: * @name: identifier of the column * @attribute: the file attribute to be displayed in the column @@ -93,8 +104,7 @@ caja_column_get_property (GObject *object, column = CAJA_COLUMN (object); - switch (param_id) - { + switch (param_id) { case PROP_NAME : g_value_set_string (value, column->details->name); break; @@ -129,8 +139,7 @@ caja_column_set_property (GObject *object, column = CAJA_COLUMN (object); - switch (param_id) - { + switch (param_id) { case PROP_NAME : g_free (column->details->name); column->details->name = g_strdup (g_value_get_string (value)); |