GimpUi.ColorProfileStore¶
- 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:
 
class  | 
  | 
  | 
Virtual Methods¶
Properties¶
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w/co  | 
Filen of the color history used to populate the profile store  | 
Signals¶
- Inherited:
 
Fields¶
- Inherited:
 
Class Details¶
- class GimpUi.ColorProfileStore(*column_types)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
A
Gtk.ListStoresubclass that keep color profiles.- classmethod new(history)¶
 - Parameters:
 history (
Gio.File) –Gio.Fileof the profilerc (orNonefor no history)- Returns:
 a new
GimpUi.ColorProfileStore- Return type:
 
Creates a new
GimpUi.ColorProfileStoreobject 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.Filepassed 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
Nonefile. If you passNonefor 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.