set_widget


Description:

[ Version ( since = "3.32" ) ]
public void set_widget (Widget? widget)

Sets the widget to connect to the query_tooltip signal.

If configured, the widget will be displayed with an appropriate tooltip message matching the shortcut from command_id.

Parameters:

this

a ShortcutTooltip

widget

a Widget or null