From f6d07eacb3165bad2b1bcd8a04700a95611fd0a0 Mon Sep 17 00:00:00 2001 From: fluxgen Date: Mon, 11 Aug 2003 16:27:23 +0000 Subject: removed strftimeformat resource, it is in clocktool now --- src/Screen.cc | 26 ++++++++++---------------- 1 file changed, 10 insertions(+), 16 deletions(-) diff --git a/src/Screen.cc b/src/Screen.cc index 593dd69..dbcff14 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.213 2003/08/10 12:50:04 rathnor Exp $ +// $Id: Screen.cc,v 1.214 2003/08/11 16:27:23 fluxgen Exp $ #include "Screen.hh" @@ -356,9 +356,6 @@ BScreen::BScreen(FbTk::ResourceManager &rm, menuTheme()->titleFont().setAntialias(*resource.antialias); menuTheme()->frameFont().setAntialias(*resource.antialias); - // load database for theme engine - FbTk::ThemeManager::instance().load(fluxbox->getStyleFilename().c_str()); - // create geometry window @@ -435,8 +432,8 @@ BScreen::BScreen(FbTk::ResourceManager &rm, m_configmenu->update(); #ifdef SLIT - if (slit()) // this will load theme and reconfigure slit - FbTk::ThemeManager::instance().loadTheme(slit()->theme()); + // if (slit()) // this will load theme and reconfigure slit + // FbTk::ThemeManager::instance().loadTheme(slit()->theme()); #endif // SLIT // start with workspace 0 @@ -495,6 +492,9 @@ BScreen::BScreen(FbTk::ResourceManager &rm, rm.unlock(); XFree(children); + + FbTk::ThemeManager::instance().load(fluxbox->getStyleFilename().c_str()); + XFlush(disp); } @@ -505,7 +505,6 @@ BScreen::~BScreen() { if (geom_pixmap != None) imageControl().removeImage(geom_pixmap); - removeWorkspaceNames(); Workspaces::iterator w_it = m_workspaces_list.begin(); @@ -614,8 +613,8 @@ void BScreen::reconfigure() { m_menutheme->frameFont().setAntialias(*resource.antialias); // load theme - std::string theme_filename(Fluxbox::instance()->getStyleFilename()); - FbTk::ThemeManager::instance().load(theme_filename.c_str()); + // std::string theme_filename(Fluxbox::instance()->getStyleFilename()); + // FbTk::ThemeManager::instance().load(theme_filename.c_str()); I18n *i18n = I18n::instance(); @@ -697,7 +696,7 @@ void BScreen::reconfigure() { m_icon_list.end(), mem_fun(&FluxboxWindow::reconfigure)); - imageControl().timeout(); + imageControl().cleanCache(); // notify objects that the screen is reconfigured m_reconfigure_sig.notify(); } @@ -865,6 +864,7 @@ void BScreen::changeWorkspaceID(unsigned int id) { focused = focused_client->fbwindow(); #ifdef DEBUG + cerr<<__FILE__<<"("<<__FUNCTION__<<"): "<