From e4d9f600d8359e82b7a689896727080d570ab8a8 Mon Sep 17 00:00:00 2001 From: Jeff Armstrong Date: Mon, 25 Jul 2011 21:50:26 -0400 Subject: Added menu highlight/normal switch. Fixed dialog handling. Extended simple application. --- lib/py_aes.c | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) (limited to 'lib/py_aes.c') diff --git a/lib/py_aes.c b/lib/py_aes.c index e221ba8..2372705 100644 --- a/lib/py_aes.c +++ b/lib/py_aes.c @@ -530,6 +530,26 @@ int ret; return Py_None; } +PyObject* __CDECL py_menu_tnormal(PyObject *self, PyObject *args) +{ +PyObject *object; +int action; +int menu; +int ret; + + if(!PyArg_ParseTuple(args,"Oii",&object, &menu, &action)) + return NULL; + + ret = menu_tnormal(PyCapsule_GetPointer(object,NULL),(short)menu,(short)action); + + if(ret == 0) { + PyErr_SetString(GEMError,"Menu tnormal failed to set properly"); + return NULL; + } + Py_INCREF(Py_None); + return Py_None; +} + /* Object Library */ PyObject* __CDECL py_objc_draw(PyObject *self, PyObject *args) { -- cgit v1.2.3