Author: AlbrechtS
Date: 2009-02-08 09:50:22 -0800 (Sun, 08 Feb 2009)
New Revision: 6653
Log:
Removed an XForms compatibility "feature" that prevented the down
array of Fl_Menu_Button from drawing (STR #2141).


Modified:
   branches/branch-1.3/CHANGES
   branches/branch-1.3/src/Fl_Menu_Button.cxx

Modified: branches/branch-1.3/CHANGES
===================================================================
--- branches/branch-1.3/CHANGES 2009-02-08 17:26:02 UTC (rev 6652)
+++ branches/branch-1.3/CHANGES 2009-02-08 17:50:22 UTC (rev 6653)
@@ -1,5 +1,7 @@
 CHANGES IN FLTK 1.3.0
 
+       - Removed an XForms compatibility "feature" that prevented the down
+         array of Fl_Menu_Button from drawing (STR #2141).
        - New helper class Fl_Watch to simplify safe handling of widget
          deletion in callbacks. This is used in Fl_Widget::do_callback()
          to prevent accessing widgets after deletion in the callback.

Modified: branches/branch-1.3/src/Fl_Menu_Button.cxx
===================================================================
--- branches/branch-1.3/src/Fl_Menu_Button.cxx  2009-02-08 17:26:02 UTC (rev 
6652)
+++ branches/branch-1.3/src/Fl_Menu_Button.cxx  2009-02-08 17:50:22 UTC (rev 
6653)
@@ -37,7 +37,7 @@
   draw_box(pressed_menu_button_ == this ? fl_down(box()) : box(), color());
   draw_label();
   if (Fl::focus() == this) draw_focus();
-  if (box() == FL_FLAT_BOX) return; // for XForms compatibility
+  // ** if (box() == FL_FLAT_BOX) return; // for XForms compatibility
   int H = (labelsize()-3)&-2;
   int X = x()+w()-H*2;
   int Y = y()+(h()-H)/2;

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

Reply via email to