aboutsummaryrefslogtreecommitdiff
path: root/src/Container.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/Container.cc')
-rw-r--r--src/Container.cc7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/Container.cc b/src/Container.cc
index 6c2dfef..5c87379 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.2 2003/08/13 09:39:16 fluxgen Exp $ 23// $Id: Container.cc,v 1.3 2003/09/08 16:28:32 fluxgen Exp $
24 24
25#include "FbTk/Button.hh" 25#include "FbTk/Button.hh"
26#include "Container.hh" 26#include "Container.hh"
@@ -28,7 +28,8 @@
28#include "FbTk/EventManager.hh" 28#include "FbTk/EventManager.hh"
29 29
30Container::Container(const FbTk::FbWindow &parent): 30Container::Container(const FbTk::FbWindow &parent):
31 FbTk::FbWindow(parent, 0, 0, 1, 1, ExposureMask), m_selected(0) { 31 FbTk::FbWindow(parent, 0, 0, 1, 1, ExposureMask), m_selected(0),
32 m_update_lock(false) {
32 33
33 FbTk::EventManager::instance()->add(*this, *this); 34 FbTk::EventManager::instance()->add(*this, *this);
34} 35}
@@ -165,7 +166,7 @@ void Container::exposeEvent(XExposeEvent &event) {
165} 166}
166 167
167void Container::repositionItems() { 168void Container::repositionItems() {
168 if (size() == 0) 169 if (size() == 0 || m_update_lock)
169 return; 170 return;
170 171
171 //!! TODO vertical position 172 //!! TODO vertical position