#include <gtk/gtk.h>

int main(int argv, char *argc[]) {
	GtkWidget *window;
	GtkWidget *menubar;
	GtkWidget *menu;
	GtkWidget *menuitem;

	gtk_init(&argv, &argc);

	window = gtk_window_new(GTK_WINDOW_TOPLEVEL);
	menubar = gtk_menu_bar_new();
	menuitem = gtk_menu_item_new_with_label("File");
	gtk_widget_show(menuitem);
	menu = gtk_menu_new();
	gtk_menu_item_set_submenu(GTK_MENU_ITEM(menuitem), menu);
	gtk_menu_shell_append(GTK_MENU_SHELL(menubar), menuitem);

	menuitem = gtk_image_menu_item_new_from_stock("gtk-new", NULL);
	
	gtk_menu_shell_append(GTK_MENU_SHELL(menu), menuitem);
	gtk_widget_show(menubar);
	gtk_widget_show(menu);
	gtk_widget_show(menuitem);

	gtk_container_add(GTK_CONTAINER(window), menubar);

	gtk_widget_show(window);

	gtk_main();

	return 0;
}
