use otk::Property to get the atom values

This commit is contained in:
Dana Jansens 2003-01-16 08:47:21 +00:00
parent d8aff44a6a
commit c7e157e53c
2 changed files with 5 additions and 2 deletions

View file

@ -8,6 +8,7 @@
#include "eventhandler.hh" #include "eventhandler.hh"
#include "widget.hh" #include "widget.hh"
#include "timer.hh" #include "timer.hh"
#include "property.hh"
extern "C" { extern "C" {
#ifdef HAVE_STDLIB_H #ifdef HAVE_STDLIB_H
@ -31,6 +32,7 @@ Application::Application(int argc, char **argv)
const ScreenInfo *s_info = _display.screenInfo(DefaultScreen(*_display)); const ScreenInfo *s_info = _display.screenInfo(DefaultScreen(*_display));
Timer::initialize(); Timer::initialize();
Property::initialize();
_img_ctrl = new ImageControl(s_info, True, 4, 5, 200); _img_ctrl = new ImageControl(s_info, True, 4, 5, 200);
_style_conf = new Configuration(False); _style_conf = new Configuration(False);
_style = new Style(_img_ctrl); _style = new Style(_img_ctrl);

View file

@ -6,6 +6,7 @@
#include "appwidget.hh" #include "appwidget.hh"
#include "application.hh" #include "application.hh"
#include "property.hh"
extern "C" { extern "C" {
#include <X11/Xlib.h> #include <X11/Xlib.h>
@ -20,8 +21,8 @@ AppWidget::AppWidget(Application *app, Direction direction,
{ {
assert(app); assert(app);
_wm_protocols = XInternAtom(**display, "WM_PROTOCOLS", false); _wm_protocols = Property::atoms.wm_protocols;
_wm_delete = XInternAtom(**display, "WM_DELETE_WINDOW", false); _wm_delete = Property::atoms.wm_protocols;
// set WM Protocols on the window // set WM Protocols on the window
Atom protocols[2]; Atom protocols[2];