aboutsummaryrefslogtreecommitdiff
path: root/src/FbWinFrame.cc
diff options
context:
space:
mode:
authorfluxgen <fluxgen>2003-09-12 23:38:50 (GMT)
committerfluxgen <fluxgen>2003-09-12 23:38:50 (GMT)
commit056a997e3934c58e183407349d4d45619822c89a (patch)
treed8e43ca545dc0c2f0df2f14dcbb140c618017e6e /src/FbWinFrame.cc
parentc136741213797b22a096b0e08daf2ceed9e08ab7 (diff)
downloadfluxbox-056a997e3934c58e183407349d4d45619822c89a.zip
fluxbox-056a997e3934c58e183407349d4d45619822c89a.tar.bz2
fixed new theme items
Diffstat (limited to 'src/FbWinFrame.cc')
-rw-r--r--src/FbWinFrame.cc45
1 files changed, 25 insertions, 20 deletions
diff --git a/src/FbWinFrame.cc b/src/FbWinFrame.cc
index 387b159..81ba7de 100644
--- a/src/FbWinFrame.cc
+++ b/src/FbWinFrame.cc
@@ -19,7 +19,7 @@
19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER 19// FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
20// DEALINGS IN THE SOFTWARE. 20// DEALINGS IN THE SOFTWARE.
21 21
22// $Id: FbWinFrame.cc,v 1.49 2003/09/12 22:49:14 fluxgen Exp $ 22// $Id: FbWinFrame.cc,v 1.50 2003/09/12 23:38:50 fluxgen Exp $
23 23
24#include "FbWinFrame.hh" 24#include "FbWinFrame.hh"
25 25
@@ -238,10 +238,6 @@ void FbWinFrame::setDoubleClickTime(unsigned int time) {
238 m_double_click_time = time; 238 m_double_click_time = time;
239} 239}
240 240
241void FbWinFrame::setBevel(int bevel) {
242 m_bevel = bevel;
243}
244
245void FbWinFrame::addLeftButton(FbTk::Button *btn) { 241void FbWinFrame::addLeftButton(FbTk::Button *btn) {
246 if (btn == 0) // valid button? 242 if (btn == 0) // valid button?
247 return; 243 return;
@@ -596,6 +592,15 @@ void FbWinFrame::reconfigure() {
596 if (m_labelbuttons.size() == 0) 592 if (m_labelbuttons.size() == 0)
597 return; 593 return;
598 594
595 m_bevel = theme().bevelWidth();
596
597 handle().resize(handle().width(),
598 theme().handleWidth());
599 gripLeft().resize(buttonHeight(),
600 theme().handleWidth());
601 gripRight().resize(gripLeft().width(),
602 gripLeft().height());
603
599 // align titlebar and render it 604 // align titlebar and render it
600 if (m_use_titlebar) 605 if (m_use_titlebar)
601 reconfigureTitlebar(); 606 reconfigureTitlebar();
@@ -1107,21 +1112,21 @@ void FbWinFrame::renderButtonUnfocus(FbTk::TextButton &button) {
1107 1112
1108void FbWinFrame::updateTransparent() { 1113void FbWinFrame::updateTransparent() {
1109 redrawTitlebar(); 1114 redrawTitlebar();
1110 /* 1115
1111 ButtonList::iterator button_it = m_buttons_left.begin(); 1116 ButtonList::iterator button_it = m_buttons_left.begin();
1112 ButtonList::iterator button_it_end = m_buttons_left.begin(); 1117 ButtonList::iterator button_it_end = m_buttons_left.begin();
1113 for (; button_it != button_it_end; ++button_it) { 1118 for (; button_it != button_it_end; ++button_it) {
1114 (*button_it)->clear(); 1119 (*button_it)->clear();
1115 (*button_it)->updateTransparent(); 1120 (*button_it)->updateTransparent();
1116 } 1121 }
1117 1122
1118 button_it = m_buttons_right.begin(); 1123 button_it = m_buttons_right.begin();
1119 button_it_end = m_buttons_right.end(); 1124 button_it_end = m_buttons_right.end();
1120 for (; button_it != button_it_end; ++button_it) { 1125 for (; button_it != button_it_end; ++button_it) {
1121 (*button_it)->clear(); 1126 (*button_it)->clear();
1122 (*button_it)->updateTransparent(); 1127 (*button_it)->updateTransparent();
1123 } 1128 }
1124 */ 1129
1125 m_grip_left.updateTransparent(); 1130 m_grip_left.updateTransparent();
1126 m_grip_right.updateTransparent(); 1131 m_grip_right.updateTransparent();
1127 m_handle.updateTransparent(); 1132 m_handle.updateTransparent();