// Create the popup menu, on right click. static void OnTrayIconPopup(object o, EventArgs args) { Menu popupMenu = new Menu(); ImageMenuItem menuItemQuit = new Gtk.ImageMenuItem("Quit"); Gtk.Image appimg = new Gtk.Image(Stock.Quit, IconSize.Menu); menuItemQuit.Image = appimg; popupMenu.Add(menuItemQuit); // Quit the application when quit has been clicked. menuItemQuit.Activated += delegate { Application.Quit(); }; popupMenu.ShowAll(); popupMenu.Popup(); popupMenu.TakeFocus = true; popupMenu.Reposition(); popupMenu.Title = "Graal RC"; }