PROGRAM(menu);
// You probably want to use GTK.MenuFactory.  See 'menu_bar' and
// 'menu_item' for simple example of how to use this widget directly.
INHERIT(menu_shell);
FUNCTION(popup, "function(void:object)")
RETURNS(GTK.Menu);
{
  gtk_menu_popup(GTK_MENU(THIS->obj), NULL,NULL,NULL,NULL, 1, time(0));
  RETURN_THIS();
}
SIMPLE_FUNCTION(popdown);
COMPLEX_FUNCTION(set_accel_group, accel_group);
NAME_ARGS(accelerators);
COMPLEX_FUNCTION(create);
COMPLEX_FUNCTION(append, widget);
NAME_ARGS(widget);
COMPLEX_FUNCTION(prepend, widget);
NAME_ARGS(widget);
COMPLEX_FUNCTION(insert, widget, int);
NAME_ARGS(widget,position);
COMPLEX_FUNCTION(set_active, int);
NAME_ARGS(activep);
SIMPLE_FUNCTION(detach);
COMPLEX_FUNCTION(attach_to_widget, widget, NULL);
NAME_ARGS(widget);
/* COMPLEX_FUNCTION(set_title, string); */
widget COMPLEX_FUNCTION(get_active);
widget COMPLEX_FUNCTION(get_attach_widget);
COMPLEX_FUNCTION(set_tearoff_state, int);
NAME_ARGS(torn_off);
CLASSMEMBER(torn_off, int);
