Author: bgbnbigben
Date: 2011-05-27 22:05:08 -0700 (Fri, 27 May 2011)
New Revision: 8749
Log:
Fixed a small issue with the XP theme that caused ToggleButtons to not toggle 
properly.


Modified:
   trunk/src/x11/fltk_theme.cxx

Modified: trunk/src/x11/fltk_theme.cxx
===================================================================
--- trunk/src/x11/fltk_theme.cxx        2011-05-28 04:47:50 UTC (rev 8748)
+++ trunk/src/x11/fltk_theme.cxx        2011-05-28 05:05:08 UTC (rev 8749)
@@ -1,4 +1,5 @@
 #include <fltk/Style.h>
+#include <fltk/Button.h>
 #include <fltk/Symbol.h>
 #include <fltk/SharedImage.h>
 #include <fltk/draw.h>
@@ -255,7 +256,7 @@
     void _draw(const Rectangle& R) const {
       pixie_box_init_check();
 
-      if (drawflags() & PUSHED)
+      if (drawflags() & PUSHED || (drawflags() & STATE))
         pixie = pixie_down;
       else if (drawflags() & HIGHLIGHT)
         pixie = pixie_hilight;

_______________________________________________
fltk-commit mailing list
[email protected]
http://lists.easysw.com/mailman/listinfo/fltk-commit

Reply via email to