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
92 lines
1.8 KiB
Plaintext
92 lines
1.8 KiB
Plaintext
<!-- ##### SECTION Title ##### -->
|
|
GtkToggleToolButton
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
|
A #GtkToolItem containing a toggle button.
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
<para>
|
|
A #GtkToggleToolButton is a #GtkToolItem that contains a toggle
|
|
button.
|
|
</para>
|
|
|
|
<para>
|
|
Use gtk_toggle_tool_button_new() to create a new
|
|
#GtkToggleToolButton. Use gtk_toggle_tool_button_new_from_stock() to
|
|
create a new #GtkToggleToolButton containing a stock item.
|
|
</para>
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
|
|
<para>
|
|
<varlistentry>
|
|
<term>#GtkToolbar</term>
|
|
<listitem><para>The toolbar widget</para></listitem>
|
|
<term>#GtkToolButton</term>
|
|
<listitem>
|
|
<para>
|
|
The parent class of #GtkToggleToolButton. The properties
|
|
"label_widget", "label", "icon_widget", and "stock_id" on
|
|
#GtkToolButton determine the label and icon used on
|
|
#GtkToggleToolButton<!-- -->s.
|
|
</para>
|
|
</listitem>
|
|
<term>#GtkSeparatorToolItem</term>
|
|
<listitem>
|
|
<para>A subclass of #GtkToolItem that separates groups of
|
|
items on a toolbar.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</para>
|
|
|
|
<!-- ##### STRUCT GtkToggleToolButton ##### -->
|
|
<para>
|
|
The #GtkToggleToolButton struct contains only private data and
|
|
should only be accessed through the functions described below.
|
|
</para>
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_toggle_tool_button_new ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_toggle_tool_button_new_from_stock ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@stock_id:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_toggle_tool_button_set_active ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@button:
|
|
@is_active:
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_toggle_tool_button_get_active ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@button:
|
|
@Returns:
|
|
|
|
|
|
<!-- ##### SIGNAL GtkToggleToolButton::toggled ##### -->
|
|
<para>
|
|
|
|
</para>
|
|
|
|
@toggletoolbutton: the object which received the signal.
|
|
|