title: Ubuntu 12.04 application indicator python
body: <p>How do i quit using a menu item in a python indicator application ?</p>
  
  <pre><code>menu = gtk.Menu()
  buf = "Quit"
  menu_items = gtk.MenuItem(buf) # click the Quit close the application. How to?
  menu.append(menu_items)
  menu_items.show()
  ind.set_menu(menu)
  gtk.main()
  </code></pre>
  
  <p>I would like to click the <code>buf</code> menu item to close the application. <code>def quit:</code></p>