X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=wrap%2Fcallback.i;h=b13a3e9d14167a0a55d2709273d7e6b952944345;hb=c217a730901137252cde2d3a39b59c4ebd53e879;hp=5a414b44dcd6165f9f9c7ba787e6f07a9c00432a;hpb=8cc271604190c5200f34ffc8fee6100759c2fc60;p=chaz%2Fopenbox diff --git a/wrap/callback.i b/wrap/callback.i index 5a414b44..b13a3e9d 100644 --- a/wrap/callback.i +++ b/wrap/callback.i @@ -1,5 +1,7 @@ // -*- mode: C++; indent-tabs-mode: nil; c-basic-offset: 2; -*- +%include "std_string.i" + %{ /* Calls a python callback for the MouseCallback function type @@ -100,6 +102,8 @@ static void PythonEventCallback(ob::EventData *data, void *pyfunc) } %inline %{ +#include "bindings.hh" + bool mbind(const std::string &button, ob::MouseContext::MC context, ob::MouseAction::MA action, PyObject *func) {