diff options
author | fluxgen <fluxgen> | 2004-01-21 13:34:40 (GMT) |
---|---|---|
committer | fluxgen <fluxgen> | 2004-01-21 13:34:40 (GMT) |
commit | 5685dc91951477ee0e0a280d1f30ec737cc95550 (patch) | |
tree | b1db59e8ec8cdef6da04bdfe060f9a9ac4a92e60 | |
parent | 11a7029b22d1e4a25cbabb7e6af8ee3e69994d1f (diff) | |
download | fluxbox-5685dc91951477ee0e0a280d1f30ec737cc95550.zip fluxbox-5685dc91951477ee0e0a280d1f30ec737cc95550.tar.bz2 |
empty accessor
-rw-r--r-- | src/Container.cc | 4 | ||||
-rw-r--r-- | src/Container.hh | 5 |
2 files changed, 5 insertions, 4 deletions
diff --git a/src/Container.cc b/src/Container.cc index b60b460..a53901d 100644 --- a/src/Container.cc +++ b/src/Container.cc | |||
@@ -20,7 +20,7 @@ | |||
20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
21 | // DEALINGS IN THE SOFTWARE. | 21 | // DEALINGS IN THE SOFTWARE. |
22 | 22 | ||
23 | // $Id: Container.cc,v 1.12 2004/01/14 23:05:14 fluxgen Exp $ | 23 | // $Id: Container.cc,v 1.13 2004/01/21 13:34:40 fluxgen Exp $ |
24 | 24 | ||
25 | #include "Container.hh" | 25 | #include "Container.hh" |
26 | 26 | ||
@@ -184,7 +184,7 @@ void Container::exposeEvent(XExposeEvent &event) { | |||
184 | } | 184 | } |
185 | 185 | ||
186 | void Container::repositionItems() { | 186 | void Container::repositionItems() { |
187 | if (size() == 0 || m_update_lock) | 187 | if (empty() || m_update_lock) |
188 | return; | 188 | return; |
189 | 189 | ||
190 | //!! TODO vertical position | 190 | //!! TODO vertical position |
diff --git a/src/Container.hh b/src/Container.hh index 6880aa3..158e034 100644 --- a/src/Container.hh +++ b/src/Container.hh | |||
@@ -20,7 +20,7 @@ | |||
20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER | 20 | // FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER |
21 | // DEALINGS IN THE SOFTWARE. | 21 | // DEALINGS IN THE SOFTWARE. |
22 | 22 | ||
23 | // $Id: Container.hh,v 1.5 2003/12/23 01:55:07 rathnor Exp $ | 23 | // $Id: Container.hh,v 1.6 2004/01/21 13:34:40 fluxgen Exp $ |
24 | 24 | ||
25 | #ifndef CONTAINER_HH | 25 | #ifndef CONTAINER_HH |
26 | #define CONTAINER_HH | 26 | #define CONTAINER_HH |
@@ -68,10 +68,11 @@ public: | |||
68 | /// accessors | 68 | /// accessors |
69 | inline Alignment alignment() const { return m_align; } | 69 | inline Alignment alignment() const { return m_align; } |
70 | inline int size() const { return m_item_list.size(); } | 70 | inline int size() const { return m_item_list.size(); } |
71 | inline bool empty() const { return m_item_list.empty(); } | ||
71 | inline const Item selected() const { return m_selected; } | 72 | inline const Item selected() const { return m_selected; } |
72 | inline Item selected() { return m_selected; } | 73 | inline Item selected() { return m_selected; } |
73 | unsigned int maxWidthPerClient() const; | 74 | unsigned int maxWidthPerClient() const; |
74 | inline unsigned int maxHeightPerClient() const { return (size() == 0 ? height() : height()/size()); } | 75 | inline unsigned int maxHeightPerClient() const { return (empty() ? height() : height()/size()); } |
75 | inline bool updateLock() const { return m_update_lock; } | 76 | inline bool updateLock() const { return m_update_lock; } |
76 | 77 | ||
77 | private: | 78 | private: |