#GtkToolItems cannot be added directly to a #GtkToolPalette -
instead they are added to a #GtkToolItemGroup which can than be added
to a #GtkToolPalette. To add a #GtkToolItemGroup to a #GtkToolPalette,
use gtk.container.Container.add.
The easiest way to use drag and drop with #GtkToolPalette is to call
gtk.tool_palette.ToolPalette.addDragDest with the desired drag source @palette
and the desired drag target @widget. Then gtk.tool_palette.ToolPalette.getDragItem
can be used to get the dragged item in the #GtkWidget::drag-data-received
signal handler of the drag target.
A #GtkToolPalette allows you to add #GtkToolItems to a palette-like container with different categories and drag and drop support.
A #GtkToolPalette is created with a call to gtk.tool_palette.ToolPalette.new_.
#GtkToolItems cannot be added directly to a #GtkToolPalette - instead they are added to a #GtkToolItemGroup which can than be added to a #GtkToolPalette. To add a #GtkToolItemGroup to a #GtkToolPalette, use gtk.container.Container.add.
The easiest way to use drag and drop with #GtkToolPalette is to call gtk.tool_palette.ToolPalette.addDragDest with the desired drag source @palette and the desired drag target @widget. Then gtk.tool_palette.ToolPalette.getDragItem can be used to get the dragged item in the #GtkWidget::drag-data-received signal handler of the drag target.
CSS nodes
GtkToolPalette has a single CSS node named toolpalette.