aboutsummaryrefslogtreecommitdiff
path: root/src/Toolbar.cc
diff options
context:
space:
mode:
authormarkt <markt>2007-07-02 02:50:09 (GMT)
committermarkt <markt>2007-07-02 02:50:09 (GMT)
commit5fcb520bbb891683a8321cebe4d9fbe9d88e5709 (patch)
tree8631a29f3d9cb14a4f9a0651eb4d95f186284c50 /src/Toolbar.cc
parent69d63da5420965216f2cd6a756301c70f6c32284 (diff)
downloadfluxbox-5fcb520bbb891683a8321cebe4d9fbe9d88e5709.zip
fluxbox-5fcb520bbb891683a8321cebe4d9fbe9d88e5709.tar.bz2
fixed DOS when toolbar.button.borderWidth is large and toolbar.bevelWidth > 0
moved the transparency menu up with the rest of the submenus in the config menu
Diffstat (limited to 'src/Toolbar.cc')
-rw-r--r--src/Toolbar.cc3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Toolbar.cc b/src/Toolbar.cc
index 1305279..6552859 100644
--- a/src/Toolbar.cc
+++ b/src/Toolbar.cc
@@ -1044,6 +1044,7 @@ void Toolbar::rearrangeItems() {
1044 (*item_it)->hide(); 1044 (*item_it)->hide();
1045 // make sure it still gets told the toolbar height 1045 // make sure it still gets told the toolbar height
1046 tmpw = 1; tmph = height - 2*(bevel_width+borderW); 1046 tmpw = 1; tmph = height - 2*(bevel_width+borderW);
1047 if (tmph >= (1<<30)) tmph = 1;
1047 FbTk::translateSize(orient, tmpw, tmph); 1048 FbTk::translateSize(orient, tmpw, tmph);
1048 (*item_it)->resize(tmpw, tmph); // width of 0 changes to 1 anyway 1049 (*item_it)->resize(tmpw, tmph); // width of 0 changes to 1 anyway
1049 continue; 1050 continue;
@@ -1080,6 +1081,8 @@ void Toolbar::rearrangeItems() {
1080 tmpw = itemw; 1081 tmpw = itemw;
1081 tmph = height - size_offset; 1082 tmph = height - size_offset;
1082 } 1083 }
1084 if (tmpw >= (1<<30)) tmpw = 1;
1085 if (tmph >= (1<<30)) tmph = 1;
1083 next_x += tmpw + bevel_width; 1086 next_x += tmpw + bevel_width;
1084 if (bevel_width != 0) 1087 if (bevel_width != 0)
1085 next_x += 2*borderW; 1088 next_x += 2*borderW;