wok-stable diff gtkdialog/stuff/examples/14.00-menubar @ rev 191
UP : mpg123 (1.2.0)
author | Christophe Lincoln <pankso@slitaz.org> |
---|---|
date | Wed Feb 06 23:40:00 2008 +0100 (2008-02-06) |
parents | |
children |
line diff
1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000 1.2 +++ b/gtkdialog/stuff/examples/14.00-menubar Wed Feb 06 23:40:00 2008 +0100 1.3 @@ -0,0 +1,47 @@ 1.4 +#!/bin/sh 1.5 + 1.6 +export MAIN_DIALOG=' 1.7 +<vbox> 1.8 + <menubar> 1.9 + <menu> 1.10 + <menuitem stock="gtk-open"> 1.11 + <action>echo You selected the open menu item.</action> 1.12 + </menuitem> 1.13 + <menuitem stock="gtk-save"> 1.14 + <action>echo You selected the open menu item.</action> 1.15 + </menuitem> 1.16 + <separator></separator> 1.17 + <menuitem stock="gtk-quit"> 1.18 + <action>echo You selected the quit menu item</action> 1.19 + <action type="exit">exit by menu</action> 1.20 + </menuitem> 1.21 + <label>File</label> 1.22 + </menu> 1.23 + <menu> 1.24 + <menuitem stock="gtk-copy"> 1.25 + <action>echo You selected the copy menuitem.</action> 1.26 + </menuitem> 1.27 + <menuitem stock="gtk-cut"> 1.28 + <action>echo You selected the cut menuitem.</action> 1.29 + </menuitem> 1.30 + <menuitem stock="gtk-paste"> 1.31 + <action>echo You selected the paste menuitem.</action> 1.32 + </menuitem> 1.33 + <label>Edit</label> 1.34 + </menu> 1.35 + <menu> 1.36 + <menuitem> 1.37 + <label>A menu item</label> 1.38 + <action>echo You selected the custom menu item.</action> 1.39 + </menuitem> 1.40 + <label>Item</label> 1.41 + </menu> 1.42 + </menubar> 1.43 + <hbox> 1.44 + <button cancel></button> 1.45 + <button ok></button> 1.46 + </hbox> 1.47 +</vbox> 1.48 +' 1.49 + 1.50 +gtkdialog --program=MAIN_DIALOG