summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
Diffstat (limited to 'examples')
-rw-r--r--examples/tree-custom-draw-items.cxx12
-rw-r--r--examples/tree-of-tables.cxx10
-rw-r--r--examples/tree-simple.cxx4
3 files changed, 3 insertions, 23 deletions
diff --git a/examples/tree-custom-draw-items.cxx b/examples/tree-custom-draw-items.cxx
index fbee62700..58e7e87fd 100644
--- a/examples/tree-custom-draw-items.cxx
+++ b/examples/tree-custom-draw-items.cxx
@@ -4,7 +4,7 @@
// Demonstrate Fl_Tree custom item draw callback. - erco 11/09/2013
//
// Copyright 2013 Greg Ercolano.
-// Copyright 1998-2013 by Bill Spitzak and others.
+// Copyright 1998-2016 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -26,7 +26,6 @@
#define MAX(a,b) ((a)>(b))?(a):(b)
#endif
-#if FLTK_ABI_VERSION >= 10303
// DERIVE CUSTOM CLASS FROM Fl_Tree_Item TO IMPLEMENT SHOWING THE TIME OF DAY
// This demonstrates that item content can be dynamic and highly customized.
//
@@ -176,15 +175,6 @@ int main(int argc, char *argv[]) {
win->show(argc, argv);
return(Fl::run());
}
-#else
-#include <FL/Fl.H>
-#include <FL/fl_message.H>
-int main(int, char**) {
- fl_alert("This demo is dependent on an ABI feature.\n"
- "FLTK_ABI_VERSION must be set to 10303 (or higher) in Enumerations.H");
- return 1;
-}
-#endif
//
// End of "$Id$".
diff --git a/examples/tree-of-tables.cxx b/examples/tree-of-tables.cxx
index be815551b..b90a015d0 100644
--- a/examples/tree-of-tables.cxx
+++ b/examples/tree-of-tables.cxx
@@ -7,7 +7,7 @@
// contains a complex widget.
//
// Copyright 2010,2012 Greg Ercolano.
-// Copyright 1998-2010 by Bill Spitzak and others.
+// Copyright 1998-2016 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -29,7 +29,6 @@
#define PI 3.14159
#endif
-#if FLTK_ABI_VERSION >= 10301
class MyTable : public Fl_Table {
const char *mode;
public:
@@ -142,13 +141,6 @@ int main(int argc, char *argv[]) {
win->show(argc, argv);
return(Fl::run());
}
-#else /*FLTK_ABI_VERSION*/
-#include <FL/fl_ask.H>
-int main(int argc, char *argv[]) {
- fl_alert("This example must have FLTK_ABI_VERSION enabled to work properly.");
- return 1;
-}
-#endif
//
// End of "$Id$".
diff --git a/examples/tree-simple.cxx b/examples/tree-simple.cxx
index 6450e9849..7e3cf964d 100644
--- a/examples/tree-simple.cxx
+++ b/examples/tree-simple.cxx
@@ -4,7 +4,7 @@
// Simple Fl_Tree widget example. - erco 06/05/2010
//
// Copyright 2010 Greg Ercolano.
-// Copyright 1998-2010 by Bill Spitzak and others.
+// Copyright 1998-2016 by Bill Spitzak and others.
//
// This library is free software. Distribution and use rights are outlined in
// the file "COPYING" which should have been included with this file. If this
@@ -44,12 +44,10 @@ void TreeCallback(Fl_Widget *w, void *data) {
case FL_TREE_REASON_CLOSED:
// fprintf(stderr, "TreeCallback: Item '%s' closed\n", item->label());
break;
-#if FLTK_ABI_VERSION >= 10301
// To enable this callback, use tree->item_reselect_mode(FL_TREE_SELECTABLE_ALWAYS);
case FL_TREE_REASON_RESELECTED:
// fprintf(stderr, "TreeCallback: Item '%s' reselected\n", item->label());
break;
-#endif
default:
break;
}