code: def mk_notebook_context_menu(callback_object):
      
      callback_object.context_menu = Gtk.Menu()
      menu = callback_object.context_menu
      mi = Gtk.MenuItem(_("New Tab"))
      mi.connect("activate", callback_object.on_new_tab)
      menu.add(mi)
      menu.add(Gtk.SeparatorMenuItem())
      mi = Gtk.MenuItem(_("Save Tabs"))
      mi.connect("activate", callback_object.on_save_tabs)
      menu.add(mi)
      mi = Gtk.MenuItem(_("Restore Tabs"))
      mi.connect("activate", callback_object.on_restore_tabs_with_dialog)
      menu.add(mi)
      menu.add(Gtk.SeparatorMenuItem())
      mi = Gtk.ImageMenuItem("gtk-preferences")
      mi.set_use_stock(True)
      mi.connect("activate", callback_object.on_show_preferences)
      menu.add(mi)
      mi = Gtk.ImageMenuItem("gtk-about")
      mi.set_use_stock(True)
      mi.connect("activate", callback_object.on_show_about)
      menu.add(mi)
      menu.add(Gtk.SeparatorMenuItem())
      mi = Gtk.MenuItem(_("Quit"))
      mi.connect("activate", callback_object.on_quit)
      menu.add(mi)
      menu.show_all()
      return menu
docs: Create the context menu for the notebook