|
button
button widget reference
button widgetA GtkButton containing either a GtkLabel, a GtkImage or both packed inside a GtkHBox or GtkVBox Definition<button yes no ok cancel help tag_attr="value"...> <label>text</label> <variable>varname</variable> <height>value</height> <width>value</width> <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>... </button> "..." denotes acceptance of multiples of the same thing. Tag AttributesSee the GtkButton widget and ancestor class properties. The following custom tag attributes are available:
DirectivesSome of these may have tag attribute equivalents.
SignalsThe default signal is "clicked", emitted when the button has been activated (pressed and released). See also the GtkButton 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). | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||