diff options
Diffstat (limited to 'src/Toolbar.cc')
-rw-r--r-- | src/Toolbar.cc | 18 |
1 files changed, 12 insertions, 6 deletions
diff --git a/src/Toolbar.cc b/src/Toolbar.cc index 29e3685..2415506 100644 --- a/src/Toolbar.cc +++ b/src/Toolbar.cc | |||
@@ -503,18 +503,24 @@ void Toolbar::reconfigure(void) { | |||
503 | if (!iconbar) { | 503 | if (!iconbar) { |
504 | iconbar = new IconBar(screen, frame.window_label); | 504 | iconbar = new IconBar(screen, frame.window_label); |
505 | if (screen->getIconCount()) { | 505 | if (screen->getIconCount()) { |
506 | LinkedListIterator<FluxboxWindow> it(screen->getIconList()); | 506 | BScreen::Icons & l = screen->getIconList(); |
507 | for(; it.current(); it++) | 507 | BScreen::Icons::iterator it = l.begin(); |
508 | addIcon(it.current()); | 508 | BScreen::Icons::iterator it_end = l.end(); |
509 | for(; it != it_end; ++it) { | ||
510 | addIcon(*it); | ||
511 | } | ||
509 | } | 512 | } |
510 | 513 | ||
511 | } else | 514 | } else |
512 | iconbar->reconfigure(); | 515 | iconbar->reconfigure(); |
513 | } else { | 516 | } else { |
514 | if (iconbar) { | 517 | if (iconbar) { |
515 | LinkedListIterator<FluxboxWindow> it(screen->getIconList()); | 518 | BScreen::Icons & l = screen->getIconList(); |
516 | for (; it.current(); it++) | 519 | BScreen::Icons::iterator it = l.begin(); |
517 | delIcon(it.current()); | 520 | BScreen::Icons::iterator it_end = l.end(); |
521 | for(; it != it_end; ++it) { | ||
522 | delIcon(*it); | ||
523 | } | ||
518 | delete iconbar; | 524 | delete iconbar; |
519 | iconbar = 0; | 525 | iconbar = 0; |
520 | } | 526 | } |