-#ifdef HAVE_CONFIG_H
-# include "../config.h"
-#endif
-
-#include "frame.hh"
-#include "openbox.hh"
-#include "screen.hh"
-#include "client.hh"
-#include "bindings.hh"
-#include "actions.hh"
-#include "python.hh"
-#include "otk/otk.hh"
-%}
-
-%include "stl.i"
-//%include std_list.i
-//%template(ClientList) std::list<Client*>;
-%include "callback.i"
-
-%immutable ob::openbox;
-/*
-%ignore ob::openbox;
-%inline %{
- ob::Openbox *Openbox_instance() { return ob::openbox; }
-%};
-*/
-
-%ignore ob::Screen::clients;
-%{
- #include <iterator>
-%}
-%extend ob::Screen {
- Client *client(int i) {
- if (i < 0 || i >= (int)self->clients.size())
- return NULL;
- ob::Client::List::iterator it = self->clients.begin();
- std::advance(it,i);
- return *it;
- }
- int clientCount() const {
- return (int) self->clients.size();
- }
-};
-
-%import "otk.i"
-
-%import "widgetbase.hh"
-%import "actions.hh"
-
-%include "openbox.hh"
-%include "screen.hh"
-%include "client.hh"
-%include "frame.hh"
-%include "python.hh"
-
-// for Window etc
-%import "X11/X.h"
-
-%inline %{
-void set_reset_key(const std::string &key)
-{
- ob::openbox->bindings()->setResetKey(key);
-}
-