diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-11-16 13:28:26 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-11-16 13:28:26 +0000 |
| commit | 77342413efd183bd1c0681a57b68acc836022923 (patch) | |
| tree | c60d7f5512a415259f516d4161846f27170e73dd /otk/focuslabel.cc | |
| parent | d4d15160fe81353a9f7958c1feb1821abe179a70 (diff) | |
change how the widgets' _dirty flag works so that all inheritence levels of the widget class can use it
Diffstat (limited to 'otk/focuslabel.cc')
| -rw-r--r-- | otk/focuslabel.cc | 17 |
1 files changed, 1 insertions, 16 deletions
diff --git a/otk/focuslabel.cc b/otk/focuslabel.cc index ea5ecfc2..ea4e9ca2 100644 --- a/otk/focuslabel.cc +++ b/otk/focuslabel.cc @@ -3,7 +3,7 @@ namespace otk { OtkFocusLabel::OtkFocusLabel(OtkWidget *parent) - : OtkFocusWidget(parent), _text(""), _dirty(false) + : OtkFocusWidget(parent), _text("") { setTexture(getStyle()->getLabelFocus()); setUnfocusTexture(getStyle()->getLabelUnfocus()); @@ -55,21 +55,6 @@ void OtkFocusLabel::update(void) ft.drawString(getWindow(), x, bevel, *text_color, t); } else OtkFocusWidget::update(); - - _dirty = false; -} - -int OtkFocusLabel::exposeHandler(const XExposeEvent &e) -{ - _dirty = true; - return OtkFocusWidget::exposeHandler(e); -} - -int OtkFocusLabel::configureHandler(const XConfigureEvent &e) -{ - if (!(e.width == width() && e.height == height())) - _dirty = true; - return OtkFocusWidget::configureHandler(e); } } |
