cd-window-sync

cd-window-sync — Sync helpers for CdWindow

Functions

CdProfile * cd_window_get_profile_sync ()

Description

These helper functions provide a simple way to use the async functions in command line tools.

See also: CdWindow

Functions

cd_window_get_profile_sync ()

CdProfile *
cd_window_get_profile_sync (CdWindow *window,
                            GtkWidget *widget,
                            GCancellable *cancellable,
                            GError **error);

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.

Parameters

window

a CdWindow instance.

 

widget

a GtkWidget

 

cancellable

a GCancellable or NULL

 

error

a GError, or NULL.

 

Returns

a CdProfile or NULL.

[transfer full]

Since: 0.1.20

Types and Values