stop including otk in the openbox module. makes the wm hooger for no good cause. simply import all the otk shit. add otk.hh
This commit is contained in:
parent
a6f1d6b82f
commit
678bb52123
7 changed files with 107 additions and 14748 deletions
29
otk/otk.i
29
otk/otk.i
|
@ -7,33 +7,7 @@
|
||||||
# include "../config.h"
|
# include "../config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "application.hh"
|
#include "otk.hh"
|
||||||
#include "appwidget.hh"
|
|
||||||
#include "assassin.hh"
|
|
||||||
#include "button.hh"
|
|
||||||
#include "color.hh"
|
|
||||||
#include "configuration.hh"
|
|
||||||
#include "display.hh"
|
|
||||||
#include "eventdispatcher.hh"
|
|
||||||
#include "eventhandler.hh"
|
|
||||||
#include "focuslabel.hh"
|
|
||||||
#include "focuswidget.hh"
|
|
||||||
#include "font.hh"
|
|
||||||
#include "gccache.hh"
|
|
||||||
#include "image.hh"
|
|
||||||
#include "label.hh"
|
|
||||||
#include "point.hh"
|
|
||||||
#include "property.hh"
|
|
||||||
#include "rect.hh"
|
|
||||||
#include "screeninfo.hh"
|
|
||||||
#include "strut.hh"
|
|
||||||
#include "style.hh"
|
|
||||||
#include "texture.hh"
|
|
||||||
#include "timer.hh"
|
|
||||||
#include "timerqueue.hh"
|
|
||||||
#include "timerqueuemanager.hh"
|
|
||||||
#include "util.hh"
|
|
||||||
#include "widget.hh"
|
|
||||||
%}
|
%}
|
||||||
|
|
||||||
%include "stl.i"
|
%include "stl.i"
|
||||||
|
@ -104,6 +78,7 @@ namespace otk {
|
||||||
%include "timerqueue.hh"
|
%include "timerqueue.hh"
|
||||||
%include "timerqueuemanager.hh"
|
%include "timerqueuemanager.hh"
|
||||||
%include "util.hh"
|
%include "util.hh"
|
||||||
|
%include "widget.hh"
|
||||||
|
|
||||||
// for Mod1Mask etc
|
// for Mod1Mask etc
|
||||||
%include "X11/X.h"
|
%include "X11/X.h"
|
||||||
|
|
|
@ -741,33 +741,7 @@ static swig_type_info *swig_types[81];
|
||||||
# include "../config.h"
|
# include "../config.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include "application.hh"
|
#include "otk.hh"
|
||||||
#include "appwidget.hh"
|
|
||||||
#include "assassin.hh"
|
|
||||||
#include "button.hh"
|
|
||||||
#include "color.hh"
|
|
||||||
#include "configuration.hh"
|
|
||||||
#include "display.hh"
|
|
||||||
#include "eventdispatcher.hh"
|
|
||||||
#include "eventhandler.hh"
|
|
||||||
#include "focuslabel.hh"
|
|
||||||
#include "focuswidget.hh"
|
|
||||||
#include "font.hh"
|
|
||||||
#include "gccache.hh"
|
|
||||||
#include "image.hh"
|
|
||||||
#include "label.hh"
|
|
||||||
#include "point.hh"
|
|
||||||
#include "property.hh"
|
|
||||||
#include "rect.hh"
|
|
||||||
#include "screeninfo.hh"
|
|
||||||
#include "strut.hh"
|
|
||||||
#include "style.hh"
|
|
||||||
#include "texture.hh"
|
|
||||||
#include "timer.hh"
|
|
||||||
#include "timerqueue.hh"
|
|
||||||
#include "timerqueuemanager.hh"
|
|
||||||
#include "util.hh"
|
|
||||||
#include "widget.hh"
|
|
||||||
|
|
||||||
|
|
||||||
#define SWIG_MemoryError 1
|
#define SWIG_MemoryError 1
|
||||||
|
|
|
@ -20,7 +20,7 @@ def state_shaded(data, add=2):
|
||||||
"""Toggles, adds or removes the 'shaded' state on a window."""
|
"""Toggles, adds or removes the 'shaded' state on a window."""
|
||||||
if not data.client: return
|
if not data.client: return
|
||||||
send_client_msg(OBDisplay_screenInfo(data.screen).rootWindow(),
|
send_client_msg(OBDisplay_screenInfo(data.screen).rootWindow(),
|
||||||
OBProperty.net_wm_state, data.client,window(), add,
|
OBProperty.net_wm_state, data.client.window(), add,
|
||||||
openbox.property().atom(OBProperty.net_wm_state_shaded))
|
openbox.property().atom(OBProperty.net_wm_state_shaded))
|
||||||
|
|
||||||
def close(data):
|
def close(data):
|
||||||
|
|
|
@ -13,7 +13,7 @@
|
||||||
#include "bindings.hh"
|
#include "bindings.hh"
|
||||||
#include "actions.hh"
|
#include "actions.hh"
|
||||||
#include "python.hh"
|
#include "python.hh"
|
||||||
#include "otk/display.hh"
|
#include "otk/otk.hh"
|
||||||
%}
|
%}
|
||||||
|
|
||||||
%include "stl.i"
|
%include "stl.i"
|
||||||
|
@ -107,7 +107,7 @@ void python_callback(PyObject *func, KeyData *data)
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
%include "../otk/otk.i"
|
%import "../otk/otk.i"
|
||||||
|
|
||||||
%import "widgetbase.hh"
|
%import "widgetbase.hh"
|
||||||
%import "actions.hh"
|
%import "actions.hh"
|
||||||
|
|
1626
src/openbox.py
1626
src/openbox.py
File diff suppressed because it is too large
Load diff
13164
src/openbox_wrap.cc
13164
src/openbox_wrap.cc
File diff suppressed because it is too large
Load diff
|
@ -31,7 +31,7 @@ void python_init(char *argv0)
|
||||||
otk::expandTilde("~/.openbox/python") +
|
otk::expandTilde("~/.openbox/python") +
|
||||||
"')").c_str()));
|
"')").c_str()));
|
||||||
// PyRun_SimpleString("from _otk import *; from _openbox import *;");
|
// PyRun_SimpleString("from _otk import *; from _openbox import *;");
|
||||||
PyRun_SimpleString("from openbox import *;");
|
PyRun_SimpleString("from otk import *; from openbox import *;");
|
||||||
PyRun_SimpleString("openbox = Openbox_instance()");
|
PyRun_SimpleString("openbox = Openbox_instance()");
|
||||||
PyRun_SimpleString("display = OBDisplay_display()");
|
PyRun_SimpleString("display = OBDisplay_display()");
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue