node/lib/metasm/metasm/gui/gtk.rb
# append stuff to a menu
# arglist:
# empty = menu separator
# string = menu entry display name (use a single '_' keyboard for shortcut, eg 'Sho_rtcut' => 'r')
# :check = menu entry is a checkbox type, add a true/false argument to specify initial value
# second string = keyboard shortcut (accelerator) - use '^' for Ctrl, and '<up>' for special keys
# a menu object = this entry will open a submenu (you must specify a name, and action is ignored)
# the method takes a block or a Proc argument that will be run whenever the menu item is selected
#
# use @menu to reference the top-level menu bar
# call update_menu when the menu is done


use @menu to reference the top-level menu bar
call update_menu when the menu is done
use @menu to reference the top - level menu bar call update_menu when the menu is done
def addsubmenu(menu, *args, &action)
		args << action if action
		menu << args
		menu.last
	end
def addsubmenu ( menu , * args , & action ) args << action if action menu << args menu . last end
append stuff to a menu
arglist:
empty = menu separator
string = menu entry display name (use a single '_' keyboard for shortcut, eg 'Sho_rtcut' => 'r')
:check = menu entry is a checkbox type, add a true/false argument to specify initial value
second string = keyboard shortcut (accelerator) - use '^' for Ctrl, and '<up>' for special keys
a menu object = this entry will open a submenu (you must specify a name, and action is ignored)
the method takes a block or a Proc argument that will be run whenever the menu item is selected
append stuff to a menu arglist : empty = menu separator string = menu entry display name ( use a single ' _ ' keyboard for shortcut eg ' Sho_rtcut ' = > ' r ' ) : check = menu entry is a checkbox type add a true / false argument to specify initial value second string = keyboard shortcut ( accelerator ) - use ' ^ ' for Ctrl and ' <up > ' for special keys a menu object = this entry will open a submenu ( you must specify a name and action is ignored ) the method takes a block or a Proc argument that will be run whenever the menu item is selected
menu
args
action