summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMichael R Sweet <michael.r.sweet@gmail.com>2004-04-29 02:47:09 +0000
committerMichael R Sweet <michael.r.sweet@gmail.com>2004-04-29 02:47:09 +0000
commit03a462143211b327374eaf3549c46dd7241a262a (patch)
tree2ce1de2e71936459fada04dc6c49a6f3baf814b3 /src
parent13fbd26b995a06c342006c958829011ab2e8858c (diff)
Documentation updates (STR #365)
The value(const Fl_Menu_Item*) method was not implemented for Fl_Choice (STR #366) git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@3402 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Choice.cxx11
1 files changed, 9 insertions, 2 deletions
diff --git a/src/Fl_Choice.cxx b/src/Fl_Choice.cxx
index 7cdcd8805..090e06943 100644
--- a/src/Fl_Choice.cxx
+++ b/src/Fl_Choice.cxx
@@ -1,5 +1,5 @@
//
-// "$Id: Fl_Choice.cxx,v 1.10.2.5.2.16 2004/04/11 04:38:57 easysw Exp $"
+// "$Id: Fl_Choice.cxx,v 1.10.2.5.2.17 2004/04/29 02:47:09 easysw Exp $"
//
// Choice widget for the Fast Light Tool Kit (FLTK).
//
@@ -106,6 +106,13 @@ Fl_Choice::Fl_Choice(int X, int Y, int W, int H, const char *l)
color(FL_BACKGROUND2_COLOR);
}
+int Fl_Choice::value(const Fl_Menu_Item *v) {
+ if (!v) return 0;
+ if (!Fl_Menu_::value(v)) return 0;
+ redraw();
+ return 1;
+}
+
int Fl_Choice::value(int v) {
if (v < 0 || v >= (size() - 1)) return 0;
if (!Fl_Menu_::value(v)) return 0;
@@ -152,5 +159,5 @@ int Fl_Choice::handle(int e) {
}
//
-// End of "$Id: Fl_Choice.cxx,v 1.10.2.5.2.16 2004/04/11 04:38:57 easysw Exp $".
+// End of "$Id: Fl_Choice.cxx,v 1.10.2.5.2.17 2004/04/29 02:47:09 easysw Exp $".
//