From a9c82d41d86ea632bb9acdb8591664da2cb87f6d Mon Sep 17 00:00:00 2001 From: rathnor Date: Tue, 15 Apr 2003 13:38:57 +0000 Subject: make toolbar work somewhat - it only displays groups, not all clients. Will address this in 0.9.2 I'd say (Simon) --- src/ToolbarHandler.cc | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/ToolbarHandler.cc b/src/ToolbarHandler.cc index 98a56f1..b84520b 100644 --- a/src/ToolbarHandler.cc +++ b/src/ToolbarHandler.cc @@ -20,7 +20,7 @@ // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER // DEALINGS IN THE SOFTWARE. -// $Id: ToolbarHandler.cc,v 1.5 2003/04/14 15:01:55 fluxgen Exp $ +// $Id: ToolbarHandler.cc,v 1.6 2003/04/15 13:38:57 rathnor Exp $ /** * The ToolbarHandler class acts as a rough interface to the toolbar. @@ -152,7 +152,13 @@ void ToolbarHandler::initForScreen(BScreen &screen) { Workspace::Windows::iterator wit = wins.begin(); Workspace::Windows::iterator wit_end = wins.end(); for (; wit != wit_end; ++wit) { - // m_toolbar->addIcon(*(*wit)); + m_toolbar->addIcon(*wit); +/* + FluxboxWindow::ClientList::iterator cit = (*wit)->clientList().begin(); + FluxboxWindow::ClientList::iterator cit_end = (*wit)->clientList().end(); + for (; cit != cit_end; ++cit) + m_toolbar->addIcon(*(*cit)); +*/ } } } @@ -164,7 +170,7 @@ void ToolbarHandler::initForScreen(BScreen &screen) { BScreen::Icons::iterator iconit = iconlist.begin(); BScreen::Icons::iterator iconit_end = iconlist.end(); for(; iconit != iconit_end; ++iconit) { - // m_toolbar->addIcon(*iconit); + m_toolbar->addIcon(*iconit); } } break; @@ -174,7 +180,7 @@ void ToolbarHandler::initForScreen(BScreen &screen) { Workspace::Windows::iterator wit = wins.begin(); Workspace::Windows::iterator wit_end = wins.end(); for (; wit != wit_end; ++wit) { - // m_toolbar->addIcon(*wit); + m_toolbar->addIcon(*wit); } } // fall through and add icons for this workspace -- cgit v0.11.2