summaryrefslogtreecommitdiff
path: root/wrap/otk.i
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2003-02-05 15:38:29 +0000
committerDana Jansens <danakj@orodu.net>2003-02-05 15:38:29 +0000
commit7c8c9e998ffc3a9b22e15feeffe77823142ce531 (patch)
tree703b1db62f68f85d97a01a265fd73d18d9b24682 /wrap/otk.i
parentffea5b55912ea936c84ce3d17577e9532a81cae4 (diff)
new swig build system. much better. yay.
Diffstat (limited to 'wrap/otk.i')
-rw-r--r--wrap/otk.i21
1 files changed, 10 insertions, 11 deletions
diff --git a/wrap/otk.i b/wrap/otk.i
index 5bf17a21..8d06d6f0 100644
--- a/wrap/otk.i
+++ b/wrap/otk.i
@@ -10,15 +10,8 @@
//%include std_list.i
%include "ustring.i"
-%ignore otk::display;
-%inline %{
- otk::Display *Display_instance() { return otk::display; }
-%};
-
-%ignore otk::Property::atoms;
-%inline %{
- const otk::Atoms& Property_atoms() { return otk::Property::atoms; }
-%};
+%immutable otk::display;
+%immutable otk::Property::atoms;
namespace otk {
/*%rename(setValue_bool) Configuration::setValue(std::string const &,bool);
@@ -77,5 +70,11 @@ namespace otk {
%include "timer.hh"
%include "util.hh"
-// for Mod1Mask etc
-%include "X11/X.h"
+// for Window etc
+%import "X11/X.h"
+
+// globals
+%pythoncode %{
+display = cvar.display;
+atoms = cvar.Property_atoms;
+%}