#include <gtk/gtk.h>

int main (gint argc, gchar **argv)
{
  GtkWidget *window, *vbox, *toolbar;
  GtkToolItem *item;

  gtk_init (&argc, &argv);

  window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  g_signal_connect (window, "delete_event", G_CALLBACK (gtk_main_quit), NULL);

  vbox = gtk_vbox_new (FALSE, 6);
  gtk_container_add (GTK_CONTAINER (window), vbox);

  toolbar = gtk_toolbar_new ();
  gtk_toolbar_set_show_arrow (GTK_TOOLBAR (toolbar), FALSE);
  gtk_box_pack_start (GTK_BOX (vbox), toolbar, TRUE, TRUE, 0);

  item = gtk_menu_tool_button_new_from_stock (GTK_STOCK_GO_BACK);
  gtk_tool_item_set_tooltip_text (GTK_TOOL_ITEM (item), "Go back");
  gtk_menu_tool_button_set_arrow_tooltip_text (GTK_MENU_TOOL_BUTTON (item), "Back history");
  gtk_widget_set_tooltip_text (GTK_WIDGET (item), "Widget tooltip");
  gtk_menu_tool_button_set_menu (GTK_MENU_TOOL_BUTTON (item), gtk_menu_new ());
  gtk_toolbar_insert (GTK_TOOLBAR (toolbar), item, -1);
  
  gtk_widget_show_all (window);
  gtk_main ();
  
  return 0;
}
