public void CreateMainMenu(Gtk.Menu menu) { menu.Append(New.CreateAcceleratedMenuItem(Gdk.Key.N, Gdk.ModifierType.ControlMask)); menu.Append(NewScreenshot.CreateMenuItem()); menu.Append(Open.CreateAcceleratedMenuItem(Gdk.Key.O, Gdk.ModifierType.ControlMask)); menu.Append(OpenRecent.CreateMenuItem()); menu.AppendSeparator(); menu.Append(Save.CreateAcceleratedMenuItem(Gdk.Key.S, Gdk.ModifierType.ControlMask)); menu.Append(SaveAs.CreateAcceleratedMenuItem(Gdk.Key.S, Gdk.ModifierType.ControlMask | Gdk.ModifierType.ShiftMask)); menu.AppendSeparator(); menu.Append(Print.CreateAcceleratedMenuItem(Gdk.Key.P, Gdk.ModifierType.ControlMask)); menu.AppendSeparator(); menu.Append(Close.CreateAcceleratedMenuItem(Gdk.Key.W, Gdk.ModifierType.ControlMask)); menu.Append(Exit.CreateAcceleratedMenuItem(Gdk.Key.Q, Gdk.ModifierType.ControlMask)); }
public void CreateMainMenu(Gtk.Menu menu) { menu.Append(New.CreateAcceleratedMenuItem(Gdk.Key.N, Gdk.ModifierType.ControlMask)); menu.Append(NewScreenshot.CreateMenuItem()); menu.Append(Open.CreateAcceleratedMenuItem(Gdk.Key.O, Gdk.ModifierType.ControlMask)); menu.Append(OpenRecent.CreateMenuItem()); menu.AppendSeparator(); menu.Append(Save.CreateAcceleratedMenuItem(Gdk.Key.S, Gdk.ModifierType.ControlMask)); menu.Append(SaveAs.CreateAcceleratedMenuItem(Gdk.Key.S, Gdk.ModifierType.ControlMask | Gdk.ModifierType.ShiftMask)); menu.AppendSeparator(); // Printing is disabled for now until it is fully functional. #if false menu.Append(Print.CreateAcceleratedMenuItem(Gdk.Key.P, Gdk.ModifierType.ControlMask)); menu.AppendSeparator(); #endif menu.Append(Close.CreateAcceleratedMenuItem(Gdk.Key.W, Gdk.ModifierType.ControlMask)); menu.Append(Exit.CreateAcceleratedMenuItem(Gdk.Key.Q, Gdk.ModifierType.ControlMask)); }