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.Windowobject.- Return type:
Creates a new
ColordGtk.Windowobject.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.Widgetcancellable (
Gio.CancellableorNone) – aGio.CancellableorNonecallback (
Gio.AsyncReadyCallbackorNone) – 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.ProfileorNone- 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.Widgetcancellable (
Gio.CancellableorNone) – aGio.CancellableorNone
- Raises:
- Returns:
a
Colord.ProfileorNone- 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
::changedsignal is emitted when the device profile has changed. TheColord.Profilethat 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.