ColordGtk.Window

g ColordGtk.Window ColordGtk.Window GObject.Object GObject.Object GObject.Object->ColordGtk.Window

Subclasses:None

Methods

Inherited:GObject.Object (37)
Structs:GObject.ObjectClass (5)
class error_quark ()
class new ()
  get_last_profile ()
  get_profile (widget, cancellable, callback, *user_data)
  get_profile_finish (res)
  get_profile_sync (widget, cancellable)

Virtual Methods

Inherited:GObject.Object (7)
  do_changed (profile)

Properties

Name Type Flags Short Description
Profile str r  

Signals

Inherited:GObject.Object (1)
Name Short Description
changed The ::changed signal is emitted when the device profile has changed.

Fields

Inherited:GObject.Object (1)
Name Type Access Description
parent GObject.Object r  
priv ColordGtk.WindowPrivate r  

Class Details

class ColordGtk.Window(**kwargs)
Bases:GObject.Object
Abstract:No
Structure:ColordGtk.WindowClass
classmethod error_quark()
Returns:An error quark.
Return type:int

New in version 0.1.20.

classmethod new()
Returns:a new ColordGtk.Window object.
Return type:ColordGtk.Window

Creates a new ColordGtk.Window object.

New in version 0.1.20.

get_last_profile()
Returns:a Colord.Profile
Return type:Colord.Profile

Gets the color profile to use for this widget.

New in version 0.1.20.

get_profile(widget, cancellable, callback, *user_data)
Parameters:

Gets the screen profile that should be used for the widget, which corresponds to the screen output the widget most covers.

This method should be called when the widget has mapped, i.e. g_signal_connect (dialog, “map”, G_CALLBACK (map_cb), priv);

Note, the returned profile from cd_client_get_profile_for_widget_finish() has already been connected to, as is ready to use.

New in version 0.1.20.

get_profile_finish(res)
Parameters:res (Gio.AsyncResult) – the Gio.AsyncResult
Raises:GLib.Error
Returns:a Colord.Profile or None
Return type:Colord.Profile

Gets the result from the asynchronous function.

New in version 0.1.20.

get_profile_sync(widget, cancellable)
Parameters:
Raises:

GLib.Error

Returns:

a Colord.Profile or None

Return type:

Colord.Profile

Gets the screen profile that should be used for the widget, which corresponds to the screen output the widget most covers.

WARNING: This function is synchronous, and may block. Do not use it in GUI applications.

New in version 0.1.20.

do_changed(profile) virtual
Parameters:profile (Colord.Profile) –

Signal Details

ColordGtk.Window.signals.changed(window, object)
Signal Name:

changed

Flags:

RUN_LAST

Parameters:

The ::changed signal is emitted when the device profile has changed. The Colord.Profile that is referenced in the callback has not been connected to, and you will need to call Colord.Profile.connect() if the ICC filename is required.

New in version 0.1.20.

Property Details

ColordGtk.Window.props.Profile
Name:Profile
Type:str
Default Value:None
Flags:READABLE