]> Dogcows Code - chaz/openbox/commitdiff
try make drawing work better but its busted
authorDana Jansens <danakj@orodu.net>
Fri, 15 Nov 2002 02:38:52 +0000 (02:38 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 15 Nov 2002 02:38:52 +0000 (02:38 +0000)
otk/button.cc
otk/button.hh
otk/widget.hh

index 18838e878019bcc7db8ebfef626168acd84cc46a..9d6c43b13d4b63de621a2cb05a5d9be7f09deb96 100644 (file)
@@ -65,4 +65,10 @@ void OtkButton::update(void)
     OtkFocusWidget::update();
 }
 
+void OtkButton::expose(const XExposeEvent &e)
+{
+  _dirty = true;
+  OtkFocusWidget::expose(e);
+}
+
 }
index 6908322e608c1dcd601805b781fed70a4f0de97c..a4b3a978763a7685b5df854d1231f910839b7a2a 100644 (file)
@@ -33,14 +33,15 @@ public:
   void press(void);
   void release(void);
 
-  void update(void);
+  virtual void update(void);
+  virtual void expose(const XExposeEvent &e);
 
 private:
 
   std::string _text;
   //OtkPixmap _pixmap;
   bool _pressed;
-//  bool _dirty;
+  bool _dirty;
 
   BTexture *_pressed_focus_tx;
   BTexture *_pressed_unfocus_tx;
index 1651a507451db098978b98ccb1df593d14063621..21e2911aafb2abd61f889eb6d3fc1d5369e6e06b 100644 (file)
@@ -27,7 +27,7 @@ public:
 
   virtual void update(void);
 
-  void expose(const XExposeEvent &e);
+  virtual void expose(const XExposeEvent &e);
 
   inline Window getWindow(void) const { return _window; }
   inline const OtkWidget *getParent(void) const { return _parent; }
This page took 0.024147 seconds and 4 git commands to generate.