projects
/
dana
/
openbox.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b989ec1
)
set the global 'display' var to the otk::Display in use
author
Dana Jansens
<danakj@orodu.net>
Mon, 13 Jan 2003 09:59:38 +0000
(09:59 +0000)
committer
Dana Jansens
<danakj@orodu.net>
Mon, 13 Jan 2003 09:59:38 +0000
(09:59 +0000)
src/python.cc
patch
|
blob
|
history
diff --git
a/src/python.cc
b/src/python.cc
index 12e74eeea1b0d5f1c6effe5b8206602167b4c465..d4cba31e44394fb4d1589ee972066f4bb5b563ac 100644
(file)
--- a/
src/python.cc
+++ b/
src/python.cc
@@
-34,6
+34,7
@@
void python_init(char *argv0)
PyRun_SimpleString("from openbox import *;");
// set up convenience global variables
PyRun_SimpleString("openbox = Openbox_instance()");
+ PyRun_SimpleString("display = Display_instance()");
// set up access to the python global variables
PyObject *obmodule = PyImport_AddModule("__main__");