From 7e8796c31ecea07484bda1d824f95babb1e1241c Mon Sep 17 00:00:00 2001 From: fluxgen Date: Fri, 10 Jan 2003 00:35:19 +0000 Subject: adjusted for FbTk ImageControl --- src/Screen.cc | 4 ++-- src/Screen.hh | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/src/Screen.cc b/src/Screen.cc index c1543d7..fa311cd 100644 --- a/src/Screen.cc +++ b/src/Screen.cc @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Screen.cc,v 1.95 2003/01/09 17:41:02 fluxgen Exp $ +// $Id: Screen.cc,v 1.96 2003/01/10 00:35:19 fluxgen Exp $ #include "Screen.hh" @@ -351,7 +351,7 @@ BScreen::BScreen(ResourceManager &rm, XDefineCursor(disp, getRootWindow(), fluxbox->getSessionCursor()); image_control = - new BImageControl(scrn, true, fluxbox->colorsPerChannel(), + new FbTk::ImageControl(scrn, true, fluxbox->colorsPerChannel(), fluxbox->getCacheLife(), fluxbox->getCacheMax()); image_control->installRootColormap(); root_colormap_installed = true; diff --git a/src/Screen.hh b/src/Screen.hh index f080db4..0002e0d 100644 --- a/src/Screen.hh +++ b/src/Screen.hh @@ -22,7 +22,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: Screen.hh,v 1.59 2003/01/09 17:38:40 fluxgen Exp $ +// $Id: Screen.hh,v 1.60 2003/01/10 00:34:08 fluxgen Exp $ #ifndef SCREEN_HH #define SCREEN_HH @@ -57,6 +57,7 @@ class Slit; namespace FbTk { class MenuTheme; class Menu; +class ImageControl; }; /// Handles screen connection and screen clients @@ -95,7 +96,7 @@ public: inline GC getOpGC() const { return theme->getOpGC(); } inline const FbTk::Color *getBorderColor() const { return &theme->getBorderColor(); } - inline BImageControl *getImageControl() { return image_control; } + inline FbTk::ImageControl *getImageControl() { return image_control; } const FbTk::Menu * const getRootmenu() const { return m_rootmenu.get(); } FbTk::Menu * const getRootmenu() { return m_rootmenu.get(); } @@ -331,7 +332,7 @@ private: Pixmap geom_pixmap; Window geom_window; - BImageControl *image_control; + FbTk::ImageControl *image_control; Configmenu *configmenu; std::auto_ptr m_rootmenu; -- cgit v0.11.2