aboutsummaryrefslogtreecommitdiff
path: root/src/IconbarTool.cc
diff options
context:
space:
mode:
authorMathias Gumz <akira at fluxbox dot org>2010-09-08 18:17:21 (GMT)
committerMathias Gumz <akira at fluxbox dot org>2010-09-08 18:17:21 (GMT)
commit690d926ac444243611cd875fb84fabb4e6db2cf2 (patch)
treec8ef84056b295071f9a9207ffea5393c6cf4ad4d /src/IconbarTool.cc
parent1e8fe2bc14856fa16508686a28a85e72cb0e422c (diff)
downloadfluxbox-690d926ac444243611cd875fb84fabb4e6db2cf2.zip
fluxbox-690d926ac444243611cd875fb84fabb4e6db2cf2.tar.bz2
introduced FbTk::BidiString
a 'BidiString' holds both the logical content and the visual reordered version of the content of a string. this helps to reduce the number of calls to reorder the string before drawing it (as introduced in the patch from Ken Bloom) and to be more consistent in menus and textboxes (drawing cursors and underlining text).
Diffstat (limited to 'src/IconbarTool.cc')
-rw-r--r--src/IconbarTool.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/IconbarTool.cc b/src/IconbarTool.cc
index 09a4507..85997ed 100644
--- a/src/IconbarTool.cc
+++ b/src/IconbarTool.cc
@@ -285,7 +285,7 @@ IconbarTool::IconbarTool(const FbTk::FbWindow &parent, IconbarTheme &theme,
285 m_menu.setInternalMenu(); 285 m_menu.setInternalMenu();
286 286
287 // add iconbar menu to toolbar menu 287 // add iconbar menu to toolbar menu
288 menu.insert(m_menu.label(), &m_menu); 288 menu.insert(m_menu.label().logical(), &m_menu);
289 289
290 // setup signals 290 // setup signals
291 theme.reconfigSig().attach(this); 291 theme.reconfigSig().attach(this);
@@ -528,7 +528,7 @@ void IconbarTool::removeWindow(Focusable &win) {
528 if (it == m_icons.end()) 528 if (it == m_icons.end())
529 return; 529 return;
530 530
531 fbdbg<<"IconbarTool::"<<__FUNCTION__<<"( 0x"<<&win<<" title = "<<win.title()<<") found!"<<endl; 531 fbdbg<<"IconbarTool::"<<__FUNCTION__<<"( 0x"<<&win<<" title = "<<win.title().logical()<<") found!"<<endl;
532 532
533 // remove from list and render theme again 533 // remove from list and render theme again
534 IconButton *button = it->second; 534 IconButton *button = it->second;
@@ -543,7 +543,7 @@ IconButton *IconbarTool::makeButton(Focusable &win) {
543 if (!fbwin || fbwin->clientList().empty()) 543 if (!fbwin || fbwin->clientList().empty())
544 return 0; 544 return 0;
545 545
546 fbdbg<<"IconbarTool::addWindow(0x"<<&win<<" title = "<<win.title()<<")"<<endl; 546 fbdbg<<"IconbarTool::addWindow(0x"<<&win<<" title = "<<win.title().logical()<<")"<<endl;
547 547
548 IconButton *button = new IconButton(m_icon_container, m_focused_theme, 548 IconButton *button = new IconButton(m_icon_container, m_focused_theme,
549 m_unfocused_theme, win); 549 m_unfocused_theme, win);
@@ -573,3 +573,4 @@ void IconbarTool::setOrientation(FbTk::Orientation orient) {
573 m_icon_container.setOrientation(orient); 573 m_icon_container.setOrientation(orient);
574 ToolbarItem::setOrientation(orient); 574 ToolbarItem::setOrientation(orient);
575} 575}
576