Author: js Date: 2009-02-14 15:27:22 +0100 (Sat, 14 Feb 2009) New Revision: 11100
Modified: branches/osx_newbuildsys/src/dock.py branches/osx_newbuildsys/src/osx/nsapp_m/nsapp.m Log: Do requestUserAttention with pyobjc instead of with some objc code.
Modified: branches/osx_newbuildsys/src/dock.py =================================================================== --- branches/osx_newbuildsys/src/dock.py 2009-02-14 13:48:27 UTC (rev 11099) +++ branches/osx_newbuildsys/src/dock.py 2009-02-14 14:27:22 UTC (rev 11100) @@ -21,7 +21,6 @@ import os from common import gajim from common import helpers -import osx
HAS_SYSTRAY_CAPABILITIES = True DOCK_IMAGES = {} @@ -78,7 +77,7 @@ def bounce(self): try: - osx.nsapp.requestUserAttention() + NSApp.requestUserAttention_(NSInformationalRequest) except NameError: pass
Modified: branches/osx_newbuildsys/src/osx/nsapp_m/nsapp.m =================================================================== --- branches/osx_newbuildsys/src/osx/nsapp_m/nsapp.m 2009-02-14 13:48:27 UTC (rev 11099) +++ branches/osx_newbuildsys/src/osx/nsapp_m/nsapp.m 2009-02-14 14:27:22 UTC (rev 11100) @@ -173,16 +173,6 @@ return Py_None; }
-static PyObject * nsapp_requestUserAttention(PyObject *self, PyObject *args) -{ - GAJIM_POOL_ALLOC - [NSApp requestUserAttention:NSInformationalRequest]; - GAJIM_POOL_FREE - - Py_INCREF(Py_None); - return Py_None; -} - static PyObject * nsapp_playFile(PyObject *self, PyObject *args) { GAJIM_POOL_ALLOC @@ -249,8 +239,6 @@ "Get the path to the bundle we were run from"}, {"playFile", nsapp_playFile, METH_VARARGS, "Play a sound file"}, - {"requestUserAttention", nsapp_requestUserAttention, METH_VARARGS, - "Sends a request for the users attention to the window manager"}, {NULL, NULL, 0, NULL} };