]> Dogcows Code - chaz/openbox/commitdiff
widget update fix
authorMarius Nita <marius@cs.pdx.edu>
Thu, 14 Nov 2002 11:42:38 +0000 (11:42 +0000)
committerMarius Nita <marius@cs.pdx.edu>
Thu, 14 Nov 2002 11:42:38 +0000 (11:42 +0000)
otk/widget.cc
otk/widget.hh

index 124431c5b461babdc79abab55686a92e18427beb..ea90a32fcdd7ccaac9811cbfe0d27edf959d95b5 100644 (file)
@@ -262,7 +262,7 @@ void OtkWidget::adjustHorz(void)
 
     for (; str_it != str_end; ++str_it) {
       (*str_it)->setWidth(str_width - _bevel_width);
-      (*str_it)->update();
+      //(*str_it)->update();
     }
   }
 
@@ -317,7 +317,7 @@ void OtkWidget::adjustVert(void)
 
     for (; str_it != str_end; ++str_it) {
       (*str_it)->setHeight(str_height - _bevel_width);
-      (*str_it)->update();
+      //(*str_it)->update();
     }
   }
 
@@ -343,11 +343,16 @@ void OtkWidget::adjustVert(void)
 
 void OtkWidget::update(void)
 {
+  OtkWidgetList::iterator it = _children.begin(), end = _children.end();
+  for (; it != end; ++it)
+    (*it)->update();
+
   if (_dirty) {
     adjust();
     render();
     XClearWindow(OBDisplay::display, _window);
   }
+
   _dirty = false;
 }
 
index ccda3b1f86ca9e8356dfe0ab75b5124eb0516bd1..85eefe79de3a028e73d84b5548108f6859b0895d 100644 (file)
@@ -25,7 +25,7 @@ public:
 
   virtual ~OtkWidget();
 
-  void update(void);
+  virtual void update(void);
 
   inline Window getWindow(void) const { return _window; }
   inline const OtkWidget *getParent(void) const { return _parent; }
This page took 0.026426 seconds and 4 git commands to generate.