Example 8. File 01.04-button_icon_actions
#! /bin/bash export MAIN_DIALOG=' <vbox> <hbox> <button> <input file icon="about_kde"></input> <action>echo about_kde</action> </button> <button> <input file icon="attach"></input> <action>echo attach</action> </button> <button> <input file icon="back"></input> <action>echo back</action> </button> <button> <input file icon="bookmark_add"></input> <action>echo bookmark_add</action> </button> <button> <input file icon="bookmark"></input> <action>echo bookmark</action> </button> <button> <input file icon="bottom"></input> <action>echo bottom</action> </button> <button> <input file icon="button_cancel"></input> <action>echo button_cancel</action> </button> <button> <input file icon="button_ok"></input> <action>echo button_ok</action> </button> <button> <input file icon="cd"></input> <action>echo cd</action> </button> <button> <input file icon="colorpicker"></input> <action>echo colorpicker</action> </button> <button> <input file icon="configure"></input> <action>echo configure</action> </button> <button> <input file icon="configure_shortcuts"></input> <action>echo configure_shortcuts</action> </button> <button> <input file icon="configure_toolbars"></input> <action>echo configure_toolbars</action> </button> <button> <input file icon="connect_established"></input> <action>echo connect_established</action> </button> <button> <input file icon="connect_no"></input> <action>echo connect_no</action> </button> <button> <input file icon="contents2"></input> <action>echo contents2</action> </button> <button> <input file icon="contents"></input> <action>echo contents</action> </button> <button> <input file icon="down"></input> <action>echo down</action> </button> <button> <input file icon="edit_add"></input> <action>echo edit_add</action> </button> <button> <input file icon="editcopy"></input> <action>echo editcopy</action> </button> <button> <input file icon="editcut"></input> <action>echo editcut</action> </button> <button> <input file icon="editdelete"></input> <action>echo editdelete</action> </button> <button> <input file icon="editpaste"></input> <action>echo editpaste</action> </button> <button> <input file icon="edit"></input> <action>echo edit</action> </button> </hbox> <hbox> <button> <input file icon="edit_remove"></input> <action>echo edit_remove</action> </button> <button> <input file icon="edittrash"></input> <action>echo edittrash</action> </button> <button> <input file icon="exec"></input> <action>echo exec</action> </button> <button> <input file icon="exit"></input> <action>echo exit</action> </button> <button> <input file icon="fileexport"></input> <action>echo fileexport</action> </button> <button> <input file icon="filefind"></input> <action>echo filefind</action> </button> <button> <input file icon="fileimport"></input> <action>echo fileimport</action> </button> <button> <input file icon="filenew"></input> <action>echo filenew</action> </button> <button> <input file icon="fileopen"></input> <action>echo fileopen</action> </button> <button> <input file icon="fileprint"></input> <action>echo fileprint</action> </button> <button> <input file icon="filequickprint"></input> <action>echo filequickprint</action> </button> <button> <input file icon="filesaveas"></input> <action>echo filesaveas</action> </button> <button> <input file icon="filesave"></input> <action>echo filesave</action> </button> <button> <input file icon="finish"></input> <action>echo finish</action> </button> <button> <input file icon="forward"></input> <action>echo forward</action> </button> <button> <input file icon="frameprint"></input> <action>echo frameprint</action> </button> <button> <input file icon="gohome"></input> <action>echo gohome</action> </button> <button> <input file icon="goto"></input> <action>echo goto</action> </button> <button> <input file icon="help"></input> <action>echo help</action> </button> <button> <input file icon="history"></input> <action>echo history</action> </button> <button> <input file icon="khtml_kget"></input> <action>echo khtml_kget</action> </button> <button> <input file icon="locationbar_erase"></input> <action>echo locationbar_erase</action> </button> <button> <input file icon="lock"></input> <action>echo lock</action> </button> <button> <input file icon="player-eject"></input> <action>echo player-eject</action> </button> </hbox> <hbox> <button> <input file icon="player_end"></input> <action>echo player_end</action> </button> <button> <input file icon="player-fwd"></input> <action>echo player-fwd</action> </button> <button> <input file icon="player_pause"></input> <action>echo player_pause</action> </button> <button> <input file icon="player_play"></input> <action>echo player_play</action> </button> <button> <input file icon="player_rew"></input> <action>echo player_rew</action> </button> <button> <input file icon="player_start"></input> <action>echo player_start</action> </button> <button> <input file icon="player_stop"></input> <action>echo player_stop</action> </button> <button> <input file icon="redo"></input> <action>echo redo</action> </button> <button> <input file icon="reload"></input> <action>echo reload</action> </button> <button> <input file icon="run"></input> <action>echo run</action> </button> <button> <input file icon="spellcheck"></input> <action>echo spellcheck</action> </button> <button> <input file icon="start"></input> <action>echo start</action> </button> <button> <input file icon="stop"></input> <action>echo stop</action> </button> <button> <input file icon="text_block"></input> <action>echo text_block</action> </button> <button> <input file icon="text_bold"></input> <action>echo text_bold</action> </button> <button> <input file icon="text_center"></input> <action>echo text_center</action> </button> <button> <input file icon="text_italic"></input> <action>echo text_italic</action> </button> <button> <input file icon="text-left"></input> <action>echo text-left</action> </button> <button> <input file icon="text_right"></input> <action>echo text_right</action> </button> <button> <input file icon="text_strike"></input> <action>echo text_strike</action> </button> <button> <input file icon="text_under"></input> <action>echo text_under</action> </button> <button> <input file icon="top"></input> <action>echo top</action> </button> <button> <input file icon="undo"></input> <action>echo undo</action> </button> <button> <input file icon="up"></input> <action>echo up</action> </button> </hbox> <hbox> <button> <input file icon="viewmag1"></input> <action>echo viewmag1</action> </button> <button> <input file icon="viewmagfit"></input> <action>echo viewmagfit</action> </button> <button> <input file icon="viewmag-"></input> <action>echo viewmag-</action> </button> <button> <input file icon="viewmag+"></input> <action>echo viewmag+</action> </button> <button> <input file icon="window_fullscreen"></input> <action>echo window_fullscreen</action> </button> </hbox> </vbox> ' gtkdialog --program=MAIN_DIALOG