summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKristian Frank Erikson <kristian@kristian-desktop.(none)>2009-01-11 00:26:00 +1300
committerKristian Frank Erikson <kristian@kristian-desktop.(none)>2009-01-11 00:26:00 +1300
commitad3453119d039d5b59afe94d76fd095e13c3dea4 (patch)
tree35ce0b65f811582e3de2a911bf3f1f277a05a857
parent57a7a0b7eac537fd2428865048c1de9a2dadc5e6 (diff)
downloadpython-compiz-manager-ad3453119d039d5b59afe94d76fd095e13c3dea4.tar.gz
python-compiz-manager-ad3453119d039d5b59afe94d76fd095e13c3dea4.tar.bz2
Still working on fixing the missing windows from the list
-rw-r--r--CompizPyWindowList-setup.py22
-rw-r--r--CompizPyWindowList.c6
2 files changed, 22 insertions, 6 deletions
diff --git a/CompizPyWindowList-setup.py b/CompizPyWindowList-setup.py
index c8811ce..082a134 100644
--- a/CompizPyWindowList-setup.py
+++ b/CompizPyWindowList-setup.py
@@ -1,10 +1,11 @@
-# To rebuild this module the command is: python second-setup.py build_ext -i
+# To rebuild this module the command is: python CompizPyWindowList-setup.py build_ext -i
from distutils.core import setup, Extension
module = Extension("CompizPyWindowList",
- libraries = ['glib-2.0','X11'],
- include_dirs = ['/usr/local/include/glib-2.0','/usr/local/lib/glib-2.0/include','/usr/include'],
+ libraries = ['glib-2.0','X11','Xmu','X11-xcb','xcb'],
+ include_dirs = ['/usr/include/glib-2.0','/usr/lib/glib-2.0/include','/usr/local/lib' \
+ '/usr/local/include/glib-2.0','/usr/local/lib/glib-2.0/include','/usr/include'],
sources = ["CompizPyWindowList.c"])
setup(name="CompizPyWindowList",
@@ -17,3 +18,18 @@ setup(name="CompizPyWindowList",
This C extension queries X11 for information on active windows.
''',
ext_modules=[module])
+
+
+ """
+ WHAT WMCTRL with debian patch compiled with:
+
+ gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/local/lib/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/include -I/usr/include/python2.5 -c CompizPyWindowList.c -o build/temp.linux-x86_64-2.5/CompizPyWindowList.o
+gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-x86_64-2.5/CompizPyWindowList.o -lglib-2.0 -lX11 -lXmu -lX11-xcb -lxcb -o CompizPyWindowList.so
+ """
+
+ """
+ WHAT THIS ONE CURRENTLY COMPILES WITH:
+
+ gcc -pthread -fno-strict-aliasing -DNDEBUG -g -fwrapv -O2 -Wall -Wstrict-prototypes -fPIC -I/usr/include/glib-2.0 -I/usr/lib/glib-2.0/include -I/usr/local/lib/usr/local/include/glib-2.0 -I/usr/local/lib/glib-2.0/include -I/usr/include -I/usr/include/python2.5 -c CompizPyWindowList.c -o build/temp.linux-x86_64-2.5/CompizPyWindowList.o
+gcc -pthread -shared -Wl,-O1 -Wl,-Bsymbolic-functions build/temp.linux-x86_64-2.5/CompizPyWindowList.o -lglib-2.0 -lX11 -lXmu -lX11-xcb -lxcb -o CompizPyWindowList.so
+ """
diff --git a/CompizPyWindowList.c b/CompizPyWindowList.c
index 7a57626..894f183 100644
--- a/CompizPyWindowList.c
+++ b/CompizPyWindowList.c
@@ -42,7 +42,7 @@ static struct {
static gboolean envir_utf8;
static PyObject*
-CompizPyWindowList_func(PyObject *self, PyObject *args)
+CompizPyWindowList_listWindows(PyObject *self, PyObject *args)
{
PyObject *returnValue;
@@ -63,7 +63,7 @@ CompizPyWindowList_func(PyObject *self, PyObject *args)
return returnValue;
}
-static char CompizPyWindowList_func_doc[] =
+static char CompizPyWindowList_listWindows_doc[] =
"listWindows()\n\
\n\
Returns a list of tuples containing information\n\
@@ -72,7 +72,7 @@ static char CompizPyWindowList_func_doc[] =
[{'title':'<window_title>','id':'<window_id>'},{...},...,{...}]";
static PyMethodDef CompizPyWindowList_methods[] = {
- {"func", CompizPyWindowList_func, METH_VARARGS, CompizPyWindowList_func_doc},
+ {"listWindows", CompizPyWindowList_listWindows, METH_VARARGS, CompizPyWindowList_listWindows_doc},
{NULL, NULL}
};