2003-07-13 20:51:14 +00:00
|
|
|
<!-- ##### SECTION Title ##### -->
|
|
|
|
GtkToolButton
|
|
|
|
|
|
|
|
<!-- ##### SECTION Short_Description ##### -->
|
2004-10-11 18:08:35 +00:00
|
|
|
A GtkToolItem subclass that displays buttons
|
2003-07-13 20:51:14 +00:00
|
|
|
|
|
|
|
<!-- ##### SECTION Long_Description ##### -->
|
|
|
|
<para>
|
2003-08-04 21:13:55 +00:00
|
|
|
#GtkToolButton<!-- -->s are #GtkToolItems containing buttons.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
Use gtk_tool_button_new() to create a new #GtkToolButton. Use
|
|
|
|
gtk_tool_button_new_with_stock() to create a #GtkToolButton
|
|
|
|
containing a stock item.
|
|
|
|
</para>
|
2003-07-13 20:51:14 +00:00
|
|
|
|
2003-08-04 21:13:55 +00:00
|
|
|
<para>
|
|
|
|
The label of a #GtkToolButton is determined by the properties
|
2008-05-29 03:07:01 +00:00
|
|
|
"label-widget", "label", and "stock-id". If "label-widget" is
|
2003-08-04 21:13:55 +00:00
|
|
|
non-%NULL, then that widget is used as the label. Otherwise, if
|
|
|
|
"label" is non-%NULL, that string is used as the label. Otherwise, if
|
2008-05-29 03:07:01 +00:00
|
|
|
"stock-id" is non-%NULL, the label is determined by the stock
|
2003-08-04 21:13:55 +00:00
|
|
|
item. Otherwise, the button does not have a label.
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<para>
|
|
|
|
The icon of a #GtkToolButton is determined by the properties
|
2008-05-29 03:07:01 +00:00
|
|
|
"icon-widget" and "stock-id". If "icon-widget" is non-%NULL, then
|
|
|
|
that widget is used as the icon. Otherwise, if "stock-id" is
|
2003-08-04 21:13:55 +00:00
|
|
|
non-%NULL, the icon is determined by the stock item. Otherwise,
|
2008-05-29 03:07:01 +00:00
|
|
|
the button does not have a icon.
|
2003-07-13 20:51:14 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### SECTION See_Also ##### -->
|
|
|
|
<para>
|
2003-08-04 21:13:55 +00:00
|
|
|
<variablelist>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>#GtkToolbar</term>
|
|
|
|
<listitem><para>The toolbar widget</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2004-09-27 18:37:33 +00:00
|
|
|
<varlistentry>
|
|
|
|
<term>#GtkMenuToolButton</term>
|
|
|
|
<listitem><para>A subclass of #GtkToolButton that displays on
|
|
|
|
the toolbar a button with an additional dropdown
|
|
|
|
menu</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
2003-08-04 21:13:55 +00:00
|
|
|
<varlistentry>
|
|
|
|
<term>#GtkToggleToolButton</term>
|
|
|
|
<listitem><para>A subclass of #GtkToolButton that displays toggle
|
|
|
|
buttons on the toolbar</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
<varlistentry>
|
|
|
|
<term>#GtkRadioToolButton</term>
|
|
|
|
<listitem><para>A subclass of #GtkToolButton that displays radio
|
|
|
|
buttons on the toolbar</para></listitem>
|
|
|
|
</varlistentry>
|
2003-07-13 20:51:14 +00:00
|
|
|
|
2003-08-04 21:13:55 +00:00
|
|
|
<varlistentry>
|
|
|
|
<term>#GtkSeparatorToolItem</term>
|
|
|
|
<listitem><para>A subclass of #GtkToolItem that separates groups of
|
|
|
|
items on a toolbar</para></listitem>
|
|
|
|
</varlistentry>
|
|
|
|
|
|
|
|
</variablelist>
|
2003-07-13 20:51:14 +00:00
|
|
|
</para>
|
|
|
|
|
2005-06-20 22:06:27 +00:00
|
|
|
<!-- ##### SECTION Stability_Level ##### -->
|
|
|
|
|
|
|
|
|
2010-05-08 05:18:53 +00:00
|
|
|
<!-- ##### SECTION Image ##### -->
|
|
|
|
|
|
|
|
|
2003-07-13 20:51:14 +00:00
|
|
|
<!-- ##### STRUCT GtkToolButton ##### -->
|
|
|
|
<para>
|
2003-08-04 21:13:55 +00:00
|
|
|
The #GtkToolButton struct contains only private. It should only be
|
|
|
|
accessed with the function described below.
|
2003-07-13 20:51:14 +00:00
|
|
|
</para>
|
|
|
|
|
|
|
|
|
2004-07-20 02:26:06 +00:00
|
|
|
<!-- ##### SIGNAL GtkToolButton::clicked ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@toolbutton: the object which received the signal.
|
|
|
|
|
2005-06-20 22:06:27 +00:00
|
|
|
<!-- ##### ARG GtkToolButton:icon-name ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2004-07-20 02:26:06 +00:00
|
|
|
<!-- ##### ARG GtkToolButton:icon-widget ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### ARG GtkToolButton:label ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### ARG GtkToolButton:label-widget ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### ARG GtkToolButton:stock-id ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
<!-- ##### ARG GtkToolButton:use-underline ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2006-06-05 19:33:40 +00:00
|
|
|
<!-- ##### ARG GtkToolButton:icon-spacing ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
2003-07-13 20:51:14 +00:00
|
|
|
<!-- ##### FUNCTION gtk_tool_button_new ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@icon_widget:
|
2003-07-30 18:35:08 +00:00
|
|
|
@label:
|
2003-07-13 20:51:14 +00:00
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_tool_button_new_from_stock ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@stock_id:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_tool_button_set_label ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@button:
|
|
|
|
@label:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_tool_button_get_label ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@button:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_tool_button_set_use_underline ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@button:
|
|
|
|
@use_underline:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_tool_button_get_use_underline ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@button:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_tool_button_set_stock_id ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@button:
|
|
|
|
@stock_id:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_tool_button_get_stock_id ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@button:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2005-06-20 22:06:27 +00:00
|
|
|
<!-- ##### FUNCTION gtk_tool_button_set_icon_name ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@button:
|
|
|
|
@icon_name:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_tool_button_get_icon_name ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@button:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
2003-07-13 20:51:14 +00:00
|
|
|
<!-- ##### FUNCTION gtk_tool_button_set_icon_widget ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@button:
|
2003-08-04 21:13:55 +00:00
|
|
|
@icon_widget:
|
2003-07-13 20:51:14 +00:00
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_tool_button_get_icon_widget ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@button:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_tool_button_set_label_widget ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@button:
|
|
|
|
@label_widget:
|
|
|
|
|
|
|
|
|
|
|
|
<!-- ##### FUNCTION gtk_tool_button_get_label_widget ##### -->
|
|
|
|
<para>
|
|
|
|
|
|
|
|
</para>
|
|
|
|
|
|
|
|
@button:
|
|
|
|
@Returns:
|
|
|
|
|
|
|
|
|