GtkMultiSelection

GtkMultiSelection — A selection model that allows selecting a multiple items

Functions

GListModel * gtk_multi_selection_new ()

Properties

GListModel * model Read / Write / Construct Only

Types and Values

Object Hierarchy

    GObject
    ╰── GtkMultiSelection

Implemented Interfaces

GtkMultiSelection implements GListModel and GtkSelectionModel.

Includes

#include <gtk/gtk.h>

Description

GtkMultiSelection is an implementation of the GtkSelectionModel interface that allows selecting multiple elements.

Note that due to the way the selection is stored, newly added items are always unselected, even if they were just removed from the model, and were selected before. In particular this means that changing the sort order of an underlying sort model will clear the selection. In other words, the selection is *not persistent*.

Functions

gtk_multi_selection_new ()

GListModel *
gtk_multi_selection_new (GListModel *model);

Creates a new selection to handle model .

Parameters

model

the GListModel to manage.

[transfer none]

Returns

a new GtkMultiSelection.

[transfer full][type GtkMultiSelection]

Types and Values

GtkMultiSelection

typedef struct _GtkMultiSelection GtkMultiSelection;

Property Details

The “model” property

  “model”                    GListModel *

The list managed by this selection

Owner: GtkMultiSelection

Flags: Read / Write / Construct Only