Top | ![]() |
![]() |
![]() |
![]() |
void | (*changed) () |
void | (*_cd_window_reserved1) () |
void | (*_cd_window_reserved2) () |
void | (*_cd_window_reserved3) () |
void | (*_cd_window_reserved4) () |
void | (*_cd_window_reserved5) () |
void | (*_cd_window_reserved6) () |
void | (*_cd_window_reserved7) () |
void | (*_cd_window_reserved8) () |
GQuark | cd_window_error_quark () |
CdWindow * | cd_window_new () |
void | cd_window_get_profile () |
CdProfile * | cd_window_get_profile_finish () |
CdProfile * | cd_window_get_last_profile () |
These functions are useful when GTK is being used alongside colord and are just provided for convenience.
See also: CdDevice
void cd_window_get_profile (CdWindow *window
,GtkWidget *widget
,GCancellable *cancellable
,GAsyncReadyCallback callback
,gpointer user_data
);
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.
window |
a CdWindow instance. |
|
widget |
a GtkWidget |
|
cancellable |
a GCancellable or |
|
callback |
the function to run on completion |
|
user_data |
the data to pass to |
Since: 0.1.20
CdProfile * cd_window_get_profile_finish (CdWindow *window
,GAsyncResult *res
,GError **error
);
Gets the result from the asynchronous function.
Since: 0.1.20