get_profile_sync


Description:

[ Version ( since = "0.1.20" ) ]
public Profile get_profile_sync (Widget widget, Cancellable? cancellable = null) throws 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:

this

a Window instance.

widget

a Widget

cancellable

a Cancellable or null

Returns:

a Profile or null