Functions
gtk_tool_palette_new ()
GtkWidget *
gtk_tool_palette_new (void);
Creates a new tool palette.
Since: 2.20
gtk_tool_palette_set_exclusive ()
void
gtk_tool_palette_set_exclusive (GtkToolPalette *palette,
GtkToolItemGroup *group,
gboolean exclusive);
Sets whether the group should be exclusive or not.
If an exclusive group is expanded all other groups are collapsed.
Since: 2.20
gtk_tool_palette_set_expand ()
void
gtk_tool_palette_set_expand (GtkToolPalette *palette,
GtkToolItemGroup *group,
gboolean expand);
Sets whether the group should be given extra space.
Since: 2.20
gtk_tool_palette_set_group_position ()
void
gtk_tool_palette_set_group_position (GtkToolPalette *palette,
GtkToolItemGroup *group,
gint position);
Sets the position of the group as an index of the tool palette.
If position is 0 the group will become the first child, if position is
-1 it will become the last child.
Since: 2.20
gtk_tool_palette_set_icon_size ()
void
gtk_tool_palette_set_icon_size (GtkToolPalette *palette,
GtkIconSize icon_size);
Sets the size of icons in the tool palette.
Since: 2.20
gtk_tool_palette_unset_icon_size ()
void
gtk_tool_palette_unset_icon_size (GtkToolPalette *palette);
Unsets the tool palette icon size set with gtk_tool_palette_set_icon_size(),
so that user preferences will be used to determine the icon size.
Since: 2.20
gtk_tool_palette_get_style ()
GtkToolbarStyle
gtk_tool_palette_get_style (GtkToolPalette *palette);
Gets the style (icons, text or both) of items in the tool palette.
Since: 2.20
gtk_tool_palette_set_style ()
void
gtk_tool_palette_set_style (GtkToolPalette *palette,
GtkToolbarStyle style);
Sets the style (text, icons or both) of items in the tool palette.
Since: 2.20
gtk_tool_palette_unset_style ()
void
gtk_tool_palette_unset_style (GtkToolPalette *palette);
Unsets a toolbar style set with gtk_tool_palette_set_style(),
so that user preferences will be used to determine the toolbar style.
Since: 2.20
gtk_tool_palette_get_drag_target_group ()
const GtkTargetEntry *
gtk_tool_palette_get_drag_target_group
(void);
Get the target entry for a dragged GtkToolItemGroup.
Since: 2.20
gtk_tool_palette_get_drag_target_item ()
const GtkTargetEntry *
gtk_tool_palette_get_drag_target_item (void);
Gets the target entry for a dragged GtkToolItem.
Since: 2.20
gtk_tool_palette_set_drag_source ()
void
gtk_tool_palette_set_drag_source (GtkToolPalette *palette,
GtkToolPaletteDragTargets targets);
Sets the tool palette as a drag source.
Enables all groups and items in the tool palette as drag sources
on button 1 and button 3 press with copy and move actions.
See gtk_drag_source_set().
Since: 2.20
gtk_tool_palette_get_hadjustment ()
GtkAdjustment *
gtk_tool_palette_get_hadjustment (GtkToolPalette *palette);
Gets the horizontal adjustment of the tool palette.
Returns
the horizontal adjustment of palette
.
[transfer none]
Since: 2.20
gtk_tool_palette_get_vadjustment ()
GtkAdjustment *
gtk_tool_palette_get_vadjustment (GtkToolPalette *palette);
Gets the vertical adjustment of the tool palette.
Returns
the vertical adjustment of palette
.
[transfer none]
Since: 2.20
Property Details
The “icon-size” property
“icon-size” GtkIconSize
The size of the icons in a tool palette. When this property is set,
it overrides the default setting.
This should only be used for special-purpose tool palettes, normal
application tool palettes should respect the user preferences for the
size of icons.
Owner: GtkToolPalette
Flags: Read / Write
Default value: GTK_ICON_SIZE_SMALL_TOOLBAR
Since: 2.20
The “icon-size-set” property
“icon-size-set” gboolean
Is TRUE if the “icon-size” property has been set.
Owner: GtkToolPalette
Flags: Read / Write
Default value: FALSE
Since: 2.20
The “toolbar-style” property
“toolbar-style” GtkToolbarStyle
The style of items in the tool palette.
Owner: GtkToolPalette
Flags: Read / Write
Default value: GTK_TOOLBAR_ICONS
Since: 2.20