aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/Container.cc
AgeCommit message (Collapse)AuthorFilesLines
2016-08-06Adjust RELATIVE ::repositionItems (more relative)Thomas Lübking1-7/+28
The evenly distributed space causes a lot of whitespace and otoh. cut items, so we use the items internal size as indicator IF the item is a textbutton (the regular usecase in fluxbox) Also publish the function to be triggered from outside (because the caller can, in theory, much better compress several text changes)
2015-01-22Remove 'always true' conditionMathias Gumz1-1/+1
2015-01-16Avoid modulo 0Mathias Gumz1-0/+4
Coverity pointed out that 'size' might be 0 (even if the 'find()' would detect this). This commit fixes this and avoids entering 'find()' at all.
2015-01-03Fix typo / editor bug or something like that.Mathias Gumz1-1/+1
While running code analysis tools this issue popped up. As it is written it is clearly a NOP, but the reason for why it is written that way remains unknown. I suspect that it was a textfragment introduced by some repeat-function of the used editor (think '.' in VIM). The code was introduced by commit a932a7a801 and looked like this in the original form: if(!XQueryTree(FbTk::App::instance()->display(), window().window(), &root_return, &parent_return, &children_return, &nchildren_return)) parent_return=parent_return;//return; Look at the outcommented return statement. I decided to return from that function instead of the NOP.
2011-02-22bugfix: consistent use of 'int' for alpha values (#3187373)Mathias Gumz1-1/+1
WindowMenuAccessor returned strange alpha values if compiled with 'g++ -Os'; unholy black magic happens if template<int> faces functions returning only 'usigned char'.
2010-09-15code deduplication by using <algorithm> and FbTk/STLUtil.hhMathias Gumz1-47/+23
2009-06-28fix changing iconbar alignment and button width from init fileMark Tiefenbruck1-1/+4
2009-06-28previous fix for reverting iconbar to relative broke external tabsMark Tiefenbruck1-19/+27
2009-06-28revert to relative iconbar alignment when too many windows are openMark Tiefenbruck1-23/+16
2008-08-18add top, left, right, and bottom center tab placement optionsMark Tiefenbruck1-3/+11
2008-08-16some cleanupMark Tiefenbruck1-5/+6
2008-04-21some fixes for gcc 3.4Thomas Orgis1-1/+1
2008-01-15split Text.hh into Orientation.hh and TextUtils.{cc,hh}Mathias Gumz1-31/+1
2007-12-28moved Container to FbTkMark Tiefenbruck1-0/+524