From 49a06939622941edbfa2e153d9cfb614037da58d Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 17 Aug 2006 13:43:07 +0000 Subject: Undid the previous Fl_Tabs::value() const change because adding 'const' *does* changed the ABI. Sigh. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@5326 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- CHANGES | 2 -- FL/Fl_Tabs.H | 2 +- documentation/Fl_Tabs.html | 2 +- src/Fl_Tabs.cxx | 2 +- 4 files changed, 3 insertions(+), 5 deletions(-) diff --git a/CHANGES b/CHANGES index 9e20bce77..9ab46ed41 100644 --- a/CHANGES +++ b/CHANGES @@ -8,8 +8,6 @@ CHANGES IN FLTK 1.1.8 - Added missing "const" to GLUT call (STR #1371) - Fixed stray FL_RELEASE events after clicking system areas on OS X (STR #1376) - - Fl_Tabs::value() is now "const" as described in the - documentation (STR #1379) - FLUID now only writes definitions of "o" and "w" variables as needed, reducing the number of "variable is shadowed" warnings from GCC. diff --git a/FL/Fl_Tabs.H b/FL/Fl_Tabs.H index 956ff7aef..3f88c2a63 100644 --- a/FL/Fl_Tabs.H +++ b/FL/Fl_Tabs.H @@ -42,7 +42,7 @@ protected: public: int handle(int); - Fl_Widget *value() const; + Fl_Widget *value(); int value(Fl_Widget *); Fl_Widget *push() const {return push_;} int push(Fl_Widget *); diff --git a/documentation/Fl_Tabs.html b/documentation/Fl_Tabs.html index d9c8dabb6..bf81679e8 100644 --- a/documentation/Fl_Tabs.html +++ b/documentation/Fl_Tabs.html @@ -79,7 +79,7 @@ can be automatic (local) variables, but you must declare the Fl_Tabs widget first so that it is destroyed last. -

Fl_Widget* Fl_Tabs::value() const +

Fl_Widget* Fl_Tabs::value()
int Fl_Tabs::value(Fl_Widget*)

Gets or sets the currently visible widget/tab. diff --git a/src/Fl_Tabs.cxx b/src/Fl_Tabs.cxx index 787765ab8..02bac39a1 100644 --- a/src/Fl_Tabs.cxx +++ b/src/Fl_Tabs.cxx @@ -231,7 +231,7 @@ int Fl_Tabs::push(Fl_Widget *o) { // are visible) and this also hides any other children. // This allows the tabs to be deleted, moved to other groups, and // show()/hide() called without it screwing up. -Fl_Widget* Fl_Tabs::value() const { +Fl_Widget* Fl_Tabs::value() { Fl_Widget* v = 0; Fl_Widget*const* a = array(); for (int i=children(); i--;) { -- cgit v1.2.3