|
togglebutton
togglebutton widget reference
togglebutton widgetA GtkToggleButton containing either a GtkLabel, a GtkImage or both packed inside a GtkHBox or GtkVBox Definition<togglebutton tag_attr="value"...> <label>text</label> <default>state</default> <variable>varname</variable> <height>value</height> <width>value</width> <input>command</input> <input file>filename</input> <input file icon="image"></input> <input file stock="gtk-image"></input> <sensitive>state</sensitive> <action>activity</action>... <action signal="type">activity</action>... <action type="function">parameter</action>... </togglebutton> "..." denotes acceptance of multiples of the same thing. Tag AttributesSee the GtkToggleButton widget and ancestor class properties. The following custom tag attributes are available:
DirectivesSome of these may have tag attribute equivalents.
SignalsThe default signal is "toggled", emitted when the state is changed. See also the GtkToggleButton widget and ancestor class signals. FunctionsThe following functions can be performed upon this widget by any widget capable of emitting signals:
The following general functions can be performed by any widget capable of emitting signals:
Notes1. The existing "image-position" GTK+ property -- normally only applicable to stock buttons -- has been extended to apply to all Gtkdialog buttons. 2. Theme icons default to 20 and do not scale or refresh (the height or width directives can be used to request a size). 3. Stock icons default to GTK_ICON_SIZE_BUTTON and do not scale or refresh (the "icon-size" tag attribute can be used to adjust the size). 4. This widget supports conditional function execution by prepending function:parameter with if true or if false. This widget was introduced in version 0.7.21. | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||