forked from AuroraMiddleware/gtk
356df7f650
Thu Oct 23 21:55:10 2003 Soeren Sandmann <sandmann@daimi.au.dk> * gtk/gtktoolbar.c (gtk_toolbar_highlight_drop_location): Make this function take an index and a GtkToolItem. * tests/testtoolbar.c (main): Make "Show Arrow" default to true. Make one of the separators !draw and expand. Update for new highlight_drop_location() API. * gtk/gtktoolitem.[ch]: Remove "pack_end" property * gtk/gtktoolbar.h: Formatting fixes. * gtk/gtktoolbar.c: Remove "pack_end" child property. Allow separator tool items to expand. (logical_to_physical, physical_to_logical): Fix off-by-one errors (Fix #125472, Marco Pesenti Gritti) * gtk/gtkseparatortoolitem.[ch]: Add new "draw" property. (gtk_separator_tool_item_expose) only draw if "draw" is TRUE. Also return FALSE, not TRUE. (gtk_separator_too_item_{set|get}_property, (gtk_separator_tool_item_{set|get}_draw): new functions
285 lines
4.2 KiB
Plaintext
285 lines
4.2 KiB
Plaintext
<!-- ##### SECTION Title ##### -->
|
|
GtkToolItem
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
|
#GtkToolItem is the base class of widgets that can be added to
|
|
#GtkToolbar.
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
<para>
|
|
#GtkToolItem<!-- -->s are widgets that can appear on a toolbar. To
|
|
create a toolbar item that contain something else than a button, use
|
|
gtk_tool_item_new(). Use gtk_container_add() to add a child
|
|
widget to the tool item.
|
|
</para>
|
|
<para>
|
|
For toolbar items that contain buttons, see the #GtkToolButton,
|
|
#GtkToggleToolButton and #GtkRadioToolButton classes.
|
|
</para>
|
|
See the #GtkToolbar class for a description of the toolbar widget.
|
|
<para>
|
|
</para>
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
<para>
|
|
|
|
<varlistentry>
|
|
<term>#GtkToolbar</term>
|
|
<listitem><para>The toolbar widget</para></listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
<term>#GtkToolButton</term>
|
|
<listitem><para>A subclass of #GtkToolItem that displays buttons on
|
|
the toolbar</para></listitem>
|
|
</varlistentry>
|
|
|
|
<varlistentry>
|
|
<term>#GtkSeparatorToolItem</term>
|
|
<listitem><para>A subclass of #GtkToolItem that separates groups of
|
|
items on a toolbar</para></listitem>
|
|
</varlistentry>
|
|
|
|
</para>
|
|
|
|
<!-- ##### STRUCT GtkToolItem ##### -->
|
|
<para>
|
|
The GtkToolItem struct contains only private data. It should only be
|
|
accessed through the functions described below.
|
|
</para>
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_tool_item_new ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_tool_item_set_homogeneous ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@tool_item:
|
|
@homogeneous:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_tool_item_get_homogeneous ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@tool_item:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_tool_item_set_expand ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@tool_item:
|
|
@expand:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_tool_item_get_expand ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@tool_item:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_tool_item_set_tooltip ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@tool_item:
|
|
@tooltips:
|
|
@tip_text:
|
|
@tip_private:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_tool_item_set_use_drag_window ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@toolitem:
|
|
@use_drag_window:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_tool_item_get_use_drag_window ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@toolitem:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_tool_item_set_visible_horizontal ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@toolitem:
|
|
@visible_horizontal:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_tool_item_get_visible_horizontal ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@toolitem:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_tool_item_set_visible_vertical ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@toolitem:
|
|
@visible_vertical:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_tool_item_get_visible_vertical ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@toolitem:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_tool_item_set_is_important ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@tool_item:
|
|
@is_important:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_tool_item_get_is_important ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@tool_item:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_tool_item_get_icon_size ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@tool_item:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_tool_item_get_orientation ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@tool_item:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_tool_item_get_toolbar_style ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@tool_item:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_tool_item_get_relief_style ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@tool_item:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_tool_item_retrieve_proxy_menu_item ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@tool_item:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_tool_item_get_proxy_menu_item ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@tool_item:
|
|
@menu_item_id:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_tool_item_set_proxy_menu_item ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@tool_item:
|
|
@menu_item_id:
|
|
@menu_item:
|
|
|
|
|
|
<!-- ##### SIGNAL GtkToolItem::create-menu-proxy ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@toolitem: the object which received the signal.
|
|
@Returns:
|
|
|
|
<!-- ##### SIGNAL GtkToolItem::set-tooltip ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@toolitem: the object which received the signal.
|
|
@arg1:
|
|
@arg2:
|
|
@arg3:
|
|
@Returns:
|
|
|
|
<!-- ##### SIGNAL GtkToolItem::toolbar-reconfigured ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@toolitem: the object which received the signal.
|
|
|
|
<!-- ##### ARG GtkToolItem:is-important ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
<!-- ##### ARG GtkToolItem:visible-horizontal ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
<!-- ##### ARG GtkToolItem:visible-vertical ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|