A GtkToolItem containing a toggle button
A <gtk-toggle-tool-button> is a <gtk-tool-item> that contains a
toggle button.
Use gtk-toggle-tool-button-new to create a new
<gtk-toggle-tool-button>. Use
gtk-toggle-tool-button-new-from-stock to create a new
<gtk-toggle-tool-button> containing a stock item.
Derives from
<gtk-tool-button>.This class defines the following slots:
active- If the toggle button should be pressed in or not
Emitted whenever the toggle tool button changes state.
<gtk-tool-item>)Returns a new
<gtk-toggle-tool-button>
- ret
- a newly created
<gtk-toggle-tool-button>Since 2.4
<gtk-toggle-tool-button>) (is_active bool)Sets the status of the toggle tool button. Set to ‘
#t’ if you want the GtkToggleButton to be 'pressed in', and ‘#f’ to raise it. This action causes the toggled signal to be emitted.
- button
- a
<gtk-toggle-tool-button>- is-active
- whether button should be active
Since 2.4
<gtk-toggle-tool-button>) ⇒ (ret bool)Queries a
<gtk-toggle-tool-button>and returns its current state. Returns ‘#t’ if the toggle button is pressed in and ‘#f’ if it is raised.
- button
- a
<gtk-toggle-tool-button>- ret
- ‘
#t’ if the toggle tool button is pressed in, ‘#f’ if notSince 2.4