Type: Application Dialogue Panel Applet
<?xml version="1.0"?> <window title="window title" width="200" height="300" onunload="test()" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <vbox> <toolbox> <menubar> <menu label="File" accesskey="F"> <menupopup> <menuitem label="Open" accesskey="O" oncommand="file_open_oncommand()" /> <menuseparator /> <menuitem label="Quit" oncommand="file_quit_oncommand()" type="checkbox" checked="true" /> </menupopup> </menu> </menubar> <toolbar> <toolbarbutton label="bla" /> <toolbarseparator /> <toolbarbutton label="bla2" image="/usr/share/pixmaps/toolbarbutton.png" /> </toolbar> </toolbox> <hbox> <image src="/usr/share/pixmaps/mypicture.png" oncommand="image_click()" /> <box orient="vertical"><label value="Hello World!" /></box> </hbox> <groupbox> <caption label="A caption" /> <button label="A Button" oncommand="alert('bla')" /> <checkbox label="checkbox" oncommand="checkbox_click()" /> <menulist onchange="menulist_onchange()"> <menupopup> <menuitem label="test" /> </menupopup> </menulist> <textbox value="textbox value" maxlength="20" /> <listbox onselect="alert(this)"> <listitem label="listitem simple" /> </listbox> </groupbox> <grid> <columns><column /><column /></columns> <rows> <row> <label value="row 0 0" /> <textbox value="row 0 1" /> </row> <row> <label value="row 1 0" /> <textbox value="row 1 1" /> </row> </rows> </grid> <tree style="min-height:100px;"> <treecols> <treecol label="treecol 1" /> <treecol label="treecol 2" /> </treecols> <treechildren> <treeitem> <treerow> <treecell label="cell 1" /> <treecell label="cell 2" /> </treerow> </treeitem> </treechildren> </tree> <statusbar> <statusbarpanel label="statusbarpanel text" /> </statusbar> </vbox> </window>
Compilation: gcc -Wall -g `pkg-config gtk+-2.0 --cflags --libs` file.c -o file
gcc -Wall -g `pkg-config gtk+-2.0 --cflags --libs` file.c -o file