GOffice.ComboColor

g Atk.ImplementorIface Atk.ImplementorIface Gtk.Widget Gtk.Widget Atk.ImplementorIface->Gtk.Widget GObject.GInterface GObject.GInterface GObject.GInterface->Atk.ImplementorIface Gtk.Buildable Gtk.Buildable GObject.GInterface->Gtk.Buildable Gtk.Orientable Gtk.Orientable GObject.GInterface->Gtk.Orientable GObject.InitiallyUnowned GObject.InitiallyUnowned GObject.InitiallyUnowned->Gtk.Widget GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned GOffice.ComboBox GOffice.ComboBox GOffice.ComboColor GOffice.ComboColor GOffice.ComboBox->GOffice.ComboColor Gtk.Box Gtk.Box Gtk.Box->GOffice.ComboBox Gtk.Buildable->Gtk.Widget Gtk.Container Gtk.Container Gtk.Container->Gtk.Box Gtk.Orientable->Gtk.Box Gtk.Widget->Gtk.Container

Subclasses:

None

Methods

Inherited:

GOffice.ComboBox (10), Gtk.Box (14), Gtk.Container (35), Gtk.Widget (278), GObject.Object (37), Gtk.Buildable (10), Gtk.Orientable (2)

Structs:

Gtk.ContainerClass (5), Gtk.WidgetClass (12), GObject.ObjectClass (5)

class

new (icon, no_color_label, default_color, color_group)

get_color (is_default)

set_allow_alpha (allow_alpha)

set_color (color)

set_color_gdk (color)

set_color_to_default ()

set_icon (icon)

set_instant_apply (active)

Virtual Methods

Inherited:

GOffice.ComboBox (2), Gtk.Container (10), Gtk.Widget (82), GObject.Object (7), Gtk.Buildable (10)

Properties

Inherited:

GOffice.ComboBox (2), Gtk.Box (3), Gtk.Container (3), Gtk.Widget (39), Gtk.Orientable (1)

Child Properties

Inherited:

Gtk.Box (5)

Style Properties

Inherited:

GOffice.ComboBox (1), Gtk.Widget (17)

Signals

Inherited:

GOffice.ComboBox (1), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Name

Short Description

color-changed

display-custom-dialog

Fields

Inherited:

GOffice.ComboBox (1), Gtk.Container (4), Gtk.Widget (69), GObject.Object (1)

Class Details

class GOffice.ComboColor(*args, **kwargs)
Bases:

GOffice.ComboBox

Abstract:

No

classmethod new(icon, no_color_label, default_color, color_group)
Parameters:
Returns:

The newly constructed combo.

Return type:

Gtk.Widget

Default constructor. Pass an optional icon and an optional label for the no/auto color button.

get_color(is_default)
Parameters:

is_default (bool) –

Return type:

int

set_allow_alpha(allow_alpha)
Parameters:

allow_alpha (bool) – Support alpha layer

Should the custom colour selector allow the use of opacity.

set_color(color)
Parameters:

color (int) – a #GOColor

set_color_gdk(color)
Parameters:

color (Gdk.RGBA) – The color

Set the color of the combo to the given color. Causes the color_changed signal to be emitted.

set_color_to_default()

Set the color of the combo to the default color. Causes the color_changed signal to be emitted.

set_icon(icon)
Parameters:

icon (GdkPixbuf.Pixbuf or None) – new icon for the combo

set_instant_apply(active)
Parameters:

active (bool) – Whether instant apply should be active or not

Turn instant apply behaviour on or off. Instant apply means that pressing the button applies the current color. When off, pressing the button opens the combo.

Signal Details

GOffice.ComboColor.signals.color_changed(combo_color, object, p0, p1, p2)
Signal Name:

color-changed

Flags:

RUN_LAST

Parameters:
GOffice.ComboColor.signals.display_custom_dialog(combo_color, object)
Signal Name:

display-custom-dialog

Flags:

RUN_LAST

Parameters: