Frama_c_gui.Menu_managerSourceHandle the menubar and the toolbar.
type where = | Toolbar of GtkStock.id * string * stringLabel then tooltip
*)| Menubar of GtkStock.id option * stringStock used for icon * Label
*)| ToolMenubar of GtkStock.id * string * stringLabel then tooltip
*)Where to put a new entry.
Callback for the buttons that can be in the menus. Standard buttons/menus have a callback with no argument. Buttons/menus with states are displayed with checkboxes in menus, or as toggle buttons in toolbars. They receive the after-click state as argument. The state of the button with the second argument of Bool_callback. Currently checks menus cannot have images in Gtk, or the GtkStock.id fields of where are ignored.
type entry = private {e_where : where;e_callback : callback_state;callback called when the button is clicked
*)e_sensitive : unit -> bool;should the button be activated when the gui is refreshed
*)}If not supplied, the sensitive parameter is the function that always returns true.
val toolbar :
?sensitive:(unit -> bool) ->
icon:GtkStock.id ->
label:string ->
?tooltip:string ->
callback_state ->
entryHow to handle a Frama-C menu.