From 73a3c979b39ae0b51298d16bc5e76b61d31c89d5 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Tue, 16 Apr 2002 23:50:53 +0000 Subject: Slit loads its own settings and saves them as they are changed added an assert in Resource --- src/Screen.h | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'src/Screen.h') diff --git a/src/Screen.h b/src/Screen.h index 4b3e4dc3..8d413529 100644 --- a/src/Screen.h +++ b/src/Screen.h @@ -103,6 +103,7 @@ private: Window geom_window; Openbox &openbox; + Resource &config; BImageControl *image_control; Configmenu *configmenu; Iconmenu *iconmenu; @@ -175,7 +176,7 @@ protected: public: - BScreen(Openbox &, int); + BScreen(Openbox &, int, Resource &); ~BScreen(void); inline const Bool &isToolbarOnTop(void) const @@ -207,18 +208,7 @@ public: inline Rootmenu *getRootmenu(void) { return rootmenu; } #ifdef SLIT - inline const Bool &isSlitOnTop(void) const { return resource.slit_on_top; } - inline const Bool &doSlitAutoHide(void) const - { return resource.slit_auto_hide; } inline Slit *getSlit(void) { return slit; } - inline const int &getSlitPlacement(void) const - { return resource.slit_placement; } - inline const int &getSlitDirection(void) const - { return resource.slit_direction; } - inline void saveSlitPlacement(int p) { resource.slit_placement = p; } - inline void saveSlitDirection(int d) { resource.slit_direction = d; } - inline void saveSlitOnTop(Bool t) { resource.slit_on_top = t; } - inline void saveSlitAutoHide(Bool t) { resource.slit_auto_hide = t; } #endif // SLIT inline int getWindowZones(void) const -- cgit v1.2.3