GimpUi.ColorProfileComboBox¶
- Subclasses:
 None
Methods¶
- Inherited:
 Gtk.ComboBox (40), Gtk.Bin (1), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.CellEditable (3), Gtk.CellLayout (9)
- Structs:
 Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)
class  | 
  | 
class  | 
  | 
  | 
|
  | 
|
  | 
Virtual Methods¶
Properties¶
Name  | 
Type  | 
Flags  | 
Short Description  | 
|---|---|---|---|
r/w/co  | 
The dialog to present when selecting profiles from disk  | 
Style Properties¶
- Inherited:
 
Signals¶
Fields¶
Class Details¶
- class GimpUi.ColorProfileComboBox(**kwargs)¶
 - Bases:
 - Abstract:
 No
- Structure:
 
A combo box for selecting color profiles.
- classmethod new(dialog, history)¶
 - Parameters:
 dialog (
Gtk.Widget) – aGtk.Dialogto present when the user selects the “Select color profile from disk…” itemhistory (
Gio.File) –Gio.Fileof the profilerc (orNonefor no history)
- Returns:
 a new
GimpUi.ColorProfileComboBox.- Return type:
 
Create a combo-box widget for selecting color profiles. The combo-box is populated from the file specified as history. This filename is typically created using the following code snippet:
gchar *history = gimp_personal_rc_file ("profilerc");The recommended dialog type to use is aGimpUi.ColorProfileChooserDialog. If aGimpUi.ColorProfileChooserDialogis passed,GimpUi.ColorProfileComboBoxwill take complete control over the dialog, which means connecting aGtk.Dialog::response() callback by itself, and take care of destroying the dialog when the combo box is destroyed.If another type of dialog is passed, this has to be implemented separately.
See also
GimpUi.ColorProfileComboBox.new_with_model().New in version 2.4.
- classmethod new_with_model(dialog, model)¶
 - Parameters:
 dialog (
Gtk.Widget) – aGtk.Dialogto present when the user selects the “Select color profile from disk…” itemmodel (
Gtk.TreeModel) – aGimpUi.ColorProfileStoreobject
- Returns:
 a new
GimpUi.ColorProfileComboBox.- Return type:
 
This constructor is useful when you want to create several combo-boxes for profile selection that all share the same
GimpUi.ColorProfileStore. This is for example done in the GIMP Preferences dialog.See also
GimpUi.ColorProfileComboBox.new().New in version 2.4.
- add_file(file, label)¶
 - Parameters:
 
This function delegates to the underlying
GimpUi.ColorProfileStore. Please refer to the documentation ofGimpUi.ColorProfileStore.add_file() for details.New in version 2.10.
- get_active_file()¶
 - Returns:
 The file of the currently selected color profile, release using
GObject.Object.unref() when it is not any longer needed.- Return type:
 
New in version 2.10.
- set_active_file(file, label)¶
 - Parameters:
 
Selects a color profile from the self and makes it the active item. If the profile is not listed in the self, then it is added with the given label (or file in case that label is
None).New in version 2.10.
- set_active_profile(profile)¶
 - Parameters:
 profile (
Gimp.ColorProfile) – aGimp.ColorProfileto set
Selects a color profile from the self and makes it the active item.
New in version 3.0.
Property Details¶
- GimpUi.ColorProfileComboBox.props.dialog¶
 - Name:
 dialog- Type:
 - Default Value:
 - Flags:
 
Gtk.Dialogto present when the user selects the “Select color profile from disk…” item.New in version 2.4.