NautilusColumn: Nautilus Extension Reference Manual

## NautilusColumn NautilusColumn — List view column descriptor object |

## Functions

NautilusColumn * | nautilus_column_new ()

## Properties

char * | attribute | Read / Write
guint | attribute-q | Read
GtkSortType | default-sort-order | Read / Write
char * | description | Read / Write
char * | label | Read / Write
char * | name | Read / Write / Construct Only
float | xalign | Read / Write

## Types and Values

| NautilusColumn

## Object Hierarchy

        GObject
        ╰── NautilusColumn

## Includes

    #include <nautilus-extension.h>

## Description

NautilusColumn is an object that describes a column in the file manager list view. Extensions can provide NautilusColumn by registering a NautilusColumnProvider and returning them from `nautilus_column_provider_get_columns()`, which will be called by the main application when creating a view.

## Functions

### nautilus_column_new ()

    NautilusColumn *
    nautilus_column_new (const char *name,
                         const char *attribute,
                         const char *label,
                         const char *description);

#### Parameters

name | identifier of the column. | [not nullable]
attribute | the file attribute to be displayed in the column. | [not nullable]
label | the user-visible label for the column. | [not nullable]
description | a user-visible description of the column. | [not nullable]

#### Returns

a new NautilusColumn.

[transfer full]

## Types and Values

### NautilusColumn

    typedef struct _NautilusColumn NautilusColumn;

## Property Details

### The `“attribute”` property

      “attribute”                char *

The attribute name to display.

Owner: NautilusColumn

Flags: Read / Write

Default value: NULL

### The `“attribute-q”` property

      “attribute-q”              guint

The attribute name to display, in quark form.

Owner: NautilusColumn

Flags: Read

Default value: 0

### The `“default-sort-order”` property

      “default-sort-order”       GtkSortType

Default sort order.

Owner: NautilusColumn

Flags: Read / Write

Default value: GTK_SORT_ASCENDING

### The `“description”` property

      “description”              char *

A user-visible description of the column.

Owner: NautilusColumn

Flags: Read / Write

Default value: NULL

### The `“label”` property

      “label”                    char *

Label to display in the column.

Owner: NautilusColumn

Flags: Read / Write

Default value: NULL

### The `“name”` property

      “name”                     char *

Name of the column.

Owner: NautilusColumn

Flags: Read / Write / Construct Only

Default value: NULL

### The `“xalign”` property

      “xalign”                   float

The x-alignment of the column.

Owner: NautilusColumn

Flags: Read / Write

Allowed values: [0,1]

Default value: 0