diff options
author | Jorge Arellano Cid <jcid@dillo.org> | 2011-05-16 13:57:30 -0400 |
---|---|---|
committer | Jorge Arellano Cid <jcid@dillo.org> | 2011-05-16 13:57:30 -0400 |
commit | 5e6f834e45819ebbaccc0d3b4e529f3e89cfa5e4 (patch) | |
tree | 9197b76fee4278f307e37ccc76b8e8d3245cd38a /dw/fltkcomplexbutton.cc | |
parent | 7aa8c280ce3bef35959098995d892c68cbabb09b (diff) |
Convert tabs into spaces
Diffstat (limited to 'dw/fltkcomplexbutton.cc')
-rw-r--r-- | dw/fltkcomplexbutton.cc | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/dw/fltkcomplexbutton.cc b/dw/fltkcomplexbutton.cc index 435ccb03..f201d52b 100644 --- a/dw/fltkcomplexbutton.cc +++ b/dw/fltkcomplexbutton.cc @@ -114,7 +114,7 @@ int ComplexButton::handle(int event) { value(oldval); set_changed(); if (when() & FL_WHEN_CHANGED) { - Fl_Widget_Tracker wp(this); + Fl_Widget_Tracker wp(this); do_callback(); if (wp.deleted()) return 1; } @@ -123,19 +123,19 @@ int ComplexButton::handle(int event) { return 1; case FL_SHORTCUT: if (!(shortcut() ? - Fl::test_shortcut(shortcut()) : test_shortcut())) return 0; + Fl::test_shortcut(shortcut()) : test_shortcut())) return 0; if (Fl::visible_focus() && handle(FL_FOCUS)) Fl::focus(this); goto triggered_by_keyboard; case FL_FOCUS : /* FALLTHROUGH */ case FL_UNFOCUS : if (Fl::visible_focus()) { if (box() == FL_NO_BOX) { - // Widgets with the FL_NO_BOX boxtype need a parent to - // redraw, since it is responsible for redrawing the - // background... - int X = x() > 0 ? x() - 1 : 0; - int Y = y() > 0 ? y() - 1 : 0; - if (window()) window()->damage(FL_DAMAGE_ALL, X, Y, w() + 2, h() + 2); + // Widgets with the FL_NO_BOX boxtype need a parent to + // redraw, since it is responsible for redrawing the + // background... + int X = x() > 0 ? x() - 1 : 0; + int Y = y() > 0 ? y() - 1 : 0; + if (window()) window()->damage(FL_DAMAGE_ALL, X, Y, w() + 2, h() + 2); } else redraw(); return 1; } else return 0; @@ -146,11 +146,11 @@ int ComplexButton::handle(int event) { triggered_by_keyboard: Fl_Widget_Tracker wp(this); if (type() == FL_RADIO_BUTTON && !value_) { - setonly(); - if (when() & FL_WHEN_CHANGED) do_callback(); + setonly(); + if (when() & FL_WHEN_CHANGED) do_callback(); } else if (type() == FL_TOGGLE_BUTTON) { - value(!value()); - if (when() & FL_WHEN_CHANGED) do_callback(); + value(!value()); + if (when() & FL_WHEN_CHANGED) do_callback(); } if (wp.deleted()) return 1; if (when() & FL_WHEN_RELEASE) do_callback(); |