ColordGtk.Window¶
- Subclasses:
None
Methods¶
- Inherited:
- Structs:
class |
|
class |
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
|
Properties¶
Name |
Type |
Flags |
Short Description |
---|---|---|---|
r |
Signals¶
- Inherited:
Name |
Short Description |
---|---|
The |
Fields¶
- Inherited:
Name |
Type |
Access |
Description |
---|---|---|---|
parent |
r |
||
priv |
r |
Class Details¶
- class ColordGtk.Window(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
- classmethod new()¶
- Returns:
a new
ColordGtk.Window
object.- Return type:
Creates a new
ColordGtk.Window
object.New in version 0.1.20.
- get_last_profile()¶
- Returns:
- Return type:
Gets the color profile to use for this widget.
New in version 0.1.20.
- get_profile(widget, cancellable, callback, *user_data)¶
- Parameters:
widget (
Gtk.Widget
) – aGtk.Widget
cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
callback (
Gio.AsyncReadyCallback
orNone
) – the function to run on completion
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
) – theGio.AsyncResult
- Raises:
- Returns:
a
Colord.Profile
orNone
- Return type:
Gets the result from the asynchronous function.
New in version 0.1.20.
- get_profile_sync(widget, cancellable)¶
- Parameters:
widget (
Gtk.Widget
) – aGtk.Widget
cancellable (
Gio.Cancellable
orNone
) – aGio.Cancellable
orNone
- Raises:
- Returns:
a
Colord.Profile
orNone
- Return type:
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, profile)¶
- Signal Name:
changed
- Flags:
- Parameters:
window (
ColordGtk.Window
) – The object which received the signalprofile (
Colord.Profile
) – theColord.Profile
The
::changed
signal is emitted when the device profile has changed. TheColord.Profile
that is referenced in the callback has not been connected to, and you will need to callColord.Profile.connect
() if the ICC filename is required.New in version 0.1.20.