public static void ShowContextMenu(Gtk.Widget parent, int x, int y, Gtk.Menu menu) { if (parent == null) { throw new ArgumentNullException("parent"); } if (menu == null) { throw new ArgumentNullException("menu"); } GtkWorkarounds.ShowContextMenu(menu, parent, x, y, parent.Allocation); }
public static void ShowContextMenu(Gtk.Widget parent, Gdk.EventButton evt, Gtk.Menu menu) { if (parent == null) { throw new ArgumentNullException("parent"); } if (menu == null) { throw new ArgumentNullException("menu"); } GtkWorkarounds.ShowContextMenu(menu, parent, evt); }