diff options
| author | Albrecht Schlosser <albrechts.fltk@online.de> | 2009-02-08 17:50:22 +0000 |
|---|---|---|
| committer | Albrecht Schlosser <albrechts.fltk@online.de> | 2009-02-08 17:50:22 +0000 |
| commit | 76254697c75d24ec3c4f25674e7d74fb571b0e2d (patch) | |
| tree | b65d5bc0adac9523d9cfba85834be0853fe968a2 | |
| parent | 3ebc315ad21eb626b3e2d7eccd46c0cb76031246 (diff) | |
Removed an XForms compatibility "feature" that prevented the down
array of Fl_Menu_Button from drawing (STR #2141).
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6653 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | CHANGES | 2 | ||||
| -rw-r--r-- | src/Fl_Menu_Button.cxx | 2 |
2 files changed, 3 insertions, 1 deletions
@@ -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. diff --git a/src/Fl_Menu_Button.cxx b/src/Fl_Menu_Button.cxx index 9389ca49f..4c626ee5e 100644 --- a/src/Fl_Menu_Button.cxx +++ b/src/Fl_Menu_Button.cxx @@ -37,7 +37,7 @@ void Fl_Menu_Button::draw() { 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; |
