summaryrefslogtreecommitdiff
path: root/src/Fl_Group.cxx
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2001-08-03 15:48:20 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2001-08-03 15:48:20 +0000
commit5994addecaf731a9468b77a4d3bb4e93def7a6e7 (patch)
tree8193abd7a37213754e071cc54fbc540d0a69b9fe /src/Fl_Group.cxx
parent0771e7cc7d5f6008260058511bfc2d273282d926 (diff)
Fixed tooltips under WIN32 - no more toolbar buttons...
Fl_Group::handle() didn't pass FL_RELEASE events to Fl_Browser_ and similar subclasses of Fl_Group; updated to pass only to widget that should receive the event. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@1547 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src/Fl_Group.cxx')
-rw-r--r--src/Fl_Group.cxx14
1 files changed, 11 insertions, 3 deletions
diff --git a/src/Fl_Group.cxx b/src/Fl_Group.cxx
index 34b2e692c..1da45d181 100644
--- a/src/Fl_Group.cxx
+++ b/src/Fl_Group.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Group.cxx,v 1.8.2.8.2.3 2001/08/02 21:11:43 easysw Exp $"
+// "$Id: Fl_Group.cxx,v 1.8.2.8.2.4 2001/08/03 15:48:20 easysw Exp $"
//
// Group widget for the Fast Light Tool Kit (FLTK).
//
@@ -169,6 +169,15 @@ int Fl_Group::handle(int event) {
}
return 0;
+ case FL_RELEASE:
+ for (i = children(); i--;) {
+ o = a[i];
+ if (o->takesevents() && Fl::event_inside(o)) {
+ if (send(o,FL_RELEASE)) return 1;
+ }
+ }
+ return 0;
+
case FL_DEACTIVATE:
case FL_ACTIVATE:
for (i = children(); i--;) {
@@ -205,7 +214,6 @@ int Fl_Group::handle(int event) {
}
return 0;
-
}
}
@@ -538,5 +546,5 @@ void Fl_Group::draw_outside_label(const Fl_Widget& w) const {
}
//
-// End of "$Id: Fl_Group.cxx,v 1.8.2.8.2.3 2001/08/02 21:11:43 easysw Exp $".
+// End of "$Id: Fl_Group.cxx,v 1.8.2.8.2.4 2001/08/03 15:48:20 easysw Exp $".
//