changeset 2021:e63f6fc75427

Convert tabs into spaces
author Jorge Arellano Cid <jcid@dillo.org>
date Mon, 16 May 2011 13:57:30 -0400
parents 477a93f3ce22
children b4c1aa2d99dc
files dw/fltkcomplexbutton.cc
diffstat 1 files changed, 12 insertions(+), 12 deletions(-) [+]
line wrap: on
line diff
--- a/dw/fltkcomplexbutton.cc	Mon May 16 01:06:02 2011 +0000
+++ b/dw/fltkcomplexbutton.cc	Mon May 16 13:57:30 2011 -0400
@@ -114,7 +114,7 @@
       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 @@
     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 @@
     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();