[ Version ( since = "0.1.20" ) ]
public async Profile get_profile (Widget widget, Cancellable? cancellable) throws Error
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.
this |
a Window instance. |
widget |
a Widget |
cancellable |
a Cancellable or null |
callback |
the function to run on completion |
user_data |
the data to pass to |