get_default_close_button_position


Description:


[ Version ( deprecated = true , deprecated_since = "5.5.0" , replacement = "" ) ]
public bool get_default_close_button_position (out CloseButtonPosition position)

Warning: get_default_close_button_position is deprecated since 5.5.0.

This method detects the close button position as configured for the window manager. If you need to know when this key changed, it's best to listen on the schema returned by Granite.Widgets.Utils.get_button_layout_schema for changes and then call this method again.

Parameters:

position

a Granite.CloseButtonPosition indicating where to best put the close button

Returns:

if no schema was detected by Granite.Widgets.Utils.get_button_layout_schema or there was no close value in the button-layout string, false will be returned. The position will be LEFT in that case.


Package: granite