Gtk.ToolItem.prototype.get_orientation

function get_orientation():Gtk.Orientation {
    // Gjs wrapper for gtk_tool_item_get_orientation()
}

Returns the orientation used for tool_item. Custom subclasses of Gtk.ToolItem should call this function to find out what size icons they should use.

Since 2.4

Returns

a Gtk.Orientation indicating the orientation used for tool_item