aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormarkt <markt>2007-08-07 07:22:11 (GMT)
committermarkt <markt>2007-08-07 07:22:11 (GMT)
commit8c53e8861ed51f284545634b46150f0adeb567e2 (patch)
tree9708f865e960184ad44ff32b45b766537b30f977
parentd77de67332b95f5fec7a6a8de703b2a57c8d67aa (diff)
downloadfluxbox_pavel-8c53e8861ed51f284545634b46150f0adeb567e2.zip
fluxbox_pavel-8c53e8861ed51f284545634b46150f0adeb567e2.tar.bz2
rotate toolbar texture along with toolbar
-rw-r--r--ChangeLog3
-rw-r--r--src/Toolbar.cc12
2 files changed, 13 insertions, 2 deletions
diff --git a/ChangeLog b/ChangeLog
index bc3d0fc..786269b 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
1 (Format: Year/Month/Day) 1 (Format: Year/Month/Day)
2Changes for 1.0.0: 2Changes for 1.0.0:
3*07/08/07:
4 * Rotate toolbar background texture along with toolbar, bug #1694959 (Mark)
5 Toolbar.cc
3*07/08/06: 6*07/08/06:
4 * Fix KDE Dockapps on restart (dont unmap), and some minor tweaks (Simon) 7 * Fix KDE Dockapps on restart (dont unmap), and some minor tweaks (Simon)
5 SystemTray.hh/cc 8 SystemTray.hh/cc
diff --git a/src/Toolbar.cc b/src/Toolbar.cc
index 6552859..ad1a8e5 100644
--- a/src/Toolbar.cc
+++ b/src/Toolbar.cc
@@ -466,8 +466,16 @@ void Toolbar::reconfigure() {
466 m_window_pm = 0; 466 m_window_pm = 0;
467 frame.window.setBackgroundColor(theme().toolbar().color()); 467 frame.window.setBackgroundColor(theme().toolbar().color());
468 } else { 468 } else {
469 m_window_pm = screen().imageControl().renderImage(frame.window.width(), frame.window.height(), 469 FbTk::Orientation orient = FbTk::ROT0;
470 theme().toolbar()); 470 Toolbar::Placement where = *m_rc_placement;
471 if (where == LEFTCENTER || where == LEFTTOP || where == LEFTBOTTOM)
472 orient = FbTk::ROT270;
473 if (where == RIGHTCENTER || where == RIGHTTOP || where == RIGHTBOTTOM)
474 orient = FbTk::ROT90;
475
476 m_window_pm = screen().imageControl().renderImage(
477 frame.window.width(), frame.window.height(),
478 theme().toolbar(), orient);
471 frame.window.setBackgroundPixmap(m_window_pm); 479 frame.window.setBackgroundPixmap(m_window_pm);
472 } 480 }
473 if (tmp) 481 if (tmp)