]> Dogcows Code - chaz/openbox/blobdiff - src/openbox.i
new raise/lower window code. only restacks 2 windows (1 move) at a time, ever. ManMow...
[chaz/openbox] / src / openbox.i
index 7422d0a198f16d4b7ccec3e747f358a4f4f0a284..f43856072a006b139dfd94768635d2dabd1c0616 100644 (file)
 
 %include "stl.i"
 //%include std_list.i
-//%template(ClientList) std::list<OBClient*>;
+//%template(ClientList) std::list<Client*>;
 
-%ignore ob::Openbox::instance;
+%ignore ob::openbox;
 %inline %{
-  ob::Openbox *Openbox_instance() { return ob::Openbox::instance; }
+  ob::Openbox *Openbox_instance() { return ob::openbox; }
 %};
 
 %{
@@ -90,15 +90,17 @@ void python_callback(PyObject *func, KeyData *data)
 }
 %}
 
-%ignore ob::OBScreen::clients;
+#ignore ob::openbox;
+
+%ignore ob::Screen::clients;
 %{
   #include <iterator>
 %}
-%extend ob::OBScreen {
-  OBClient *client(int i) {
-    if (i >= (int)self->clients.size())
+%extend ob::Screen {
+  Client *client(int i) {
+    if (i < 0 || i >= (int)self->clients.size())
       return NULL;
-    ob::OBClient::List::iterator it = self->clients.begin();
+    ob::Client::List::iterator it = self->clients.begin();
     std::advance(it,i);
     return *it;
   }
@@ -107,9 +109,16 @@ void python_callback(PyObject *func, KeyData *data)
   }
 };
 
-%ignore otk::OBDisplay::display;
+%include "../otk/ustring.i"
+
+%ignore otk::display;
+%inline %{
+  otk::Display *Display_instance() { return otk::display; }
+%};
+
+%ignore otk::Property::atoms;
 %inline %{
-  Display *OBDisplay_display() { return otk::OBDisplay::display; }
+  const otk::Atoms& Property_atoms() { return otk::Property::atoms; }
 %};
 
 %include "../otk/display.hh"
@@ -119,11 +128,6 @@ void python_callback(PyObject *func, KeyData *data)
 %include "../otk/screeninfo.hh"
 %include "../otk/strut.hh"
 
-%rename(itostring_unsigned) itostring(unsigned int);
-%rename(itostring_long) itostring(long);
-%rename(itostring_unsigned_long) itostring(unsigned long);
-%include "../otk/util.hh"
-
 %include "../otk/eventhandler.hh"
 %include "../otk/eventdispatcher.hh"
 
This page took 0.02182 seconds and 4 git commands to generate.