GimpUi.ColorProfileStore

g GObject.GInterface GObject.GInterface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.TreeDragDest Gtk.TreeDragDest GObject.GInterface->Gtk.TreeDragDest Gtk.TreeDragSource Gtk.TreeDragSource GObject.GInterface->Gtk.TreeDragSource Gtk.TreeModel Gtk.TreeModel GObject.GInterface->Gtk.TreeModel Gtk.TreeSortable Gtk.TreeSortable GObject.GInterface->Gtk.TreeSortable GObject.Object GObject.Object Gtk.ListStore Gtk.ListStore GObject.Object->Gtk.ListStore GimpUi.ColorProfileStore GimpUi.ColorProfileStore Gtk.Buildable->Gtk.ListStore Gtk.ListStore->GimpUi.ColorProfileStore Gtk.TreeDragDest->Gtk.ListStore Gtk.TreeDragSource->Gtk.ListStore Gtk.TreeModel->Gtk.ListStore Gtk.TreeSortable->Gtk.ListStore

Subclasses:

None

Methods

Inherited:

Gtk.ListStore (18), GObject.Object (37), Gtk.Buildable (10), Gtk.TreeDragDest (2), Gtk.TreeDragSource (3), Gtk.TreeModel (28), Gtk.TreeSortable (6)

Structs:

GObject.ObjectClass (5)

class

new (history)

add_file (file, label)

Virtual Methods

Inherited:

GObject.Object (7), Gtk.Buildable (10), Gtk.TreeDragDest (2), Gtk.TreeDragSource (3), Gtk.TreeModel (19), Gtk.TreeSortable (6)

Properties

Name

Type

Flags

Short Description

history

Gio.File

r/w/co

Filen of the color history used to populate the profile store

Signals

Inherited:

GObject.Object (1), Gtk.TreeModel (5), Gtk.TreeSortable (1)

Fields

Inherited:

GObject.Object (1), Gtk.TreeModel (5), Gtk.TreeSortable (1)

Class Details

class GimpUi.ColorProfileStore(*column_types)
Bases:

Gtk.ListStore

Abstract:

No

Structure:

GimpUi.ColorProfileStoreClass

A Gtk.ListStore subclass that keep color profiles.

classmethod new(history)
Parameters:

history (Gio.File) – Gio.File of the profilerc (or None for no history)

Returns:

a new GimpUi.ColorProfileStore

Return type:

Gtk.ListStore

Creates a new GimpUi.ColorProfileStore object and populates it with last used profiles read from the file history. The updated history is written back to disk when the store is disposed.

The Gio.File passed as history is typically created using the following code snippet:

gchar *history = gimp_personal_rc_file ("profilerc");

New in version 2.4.

add_file(file, label)
Parameters:

Adds a color profile item to the GimpUi.ColorProfileStore. Items added with this function will be kept at the top, separated from the history of last used color profiles.

This function is often used to add a selectable item for the None file. If you pass None for both file and label, the label will be set to the string “None” for you (and translated for the user).

New in version 2.10.

Property Details

GimpUi.ColorProfileStore.props.history
Name:

history

Type:

Gio.File

Default Value:

None

Flags:

READABLE, WRITABLE, CONSTRUCT_ONLY

Gio.File of the color history used to populate the profile store.

New in version 2.4.