Gtk.ToolItem.prototype.get_toolbar_style

function get_toolbar_style():Gtk.ToolbarStyle {
    // Gjs wrapper for gtk_tool_item_get_toolbar_style()
}

Returns the toolbar style used for tool_item. Custom subclasses of Gtk.ToolItem should call this function in the handler of the GtkToolItem::toolbar_reconfigured signal to find out in what style the toolbar is displayed and change themselves accordingly

Possibilities are: <itemizedlist> <listitem> GTK_TOOLBAR_BOTH, meaning the tool item should show both an icon and a label, stacked vertically </listitem> <listitem> GTK_TOOLBAR_ICONS, meaning the toolbar shows only icons </listitem> <listitem> GTK_TOOLBAR_TEXT, meaning the tool item should only show text</listitem> <listitem> GTK_TOOLBAR_BOTH_HORIZ, meaning the tool item should show both an icon and a label, arranged horizontally</listitem> </itemizedlist>

Since 2.4

Returns

A Gtk.ToolbarStyle indicating the toolbar style used for tool_item.