static bool PopupContextMenu_cb(IntPtr inst, int x, int y, int button_number) { try { Toolbar __obj = GLib.Object.GetObject(inst, false) as Toolbar; bool __result; __result = __obj.OnPopupContextMenu(x, y, button_number); return(__result); } catch (Exception e) { GLib.ExceptionManager.RaiseUnhandledException(e, true); // NOTREACHED: above call does not return. throw e; } }