diff options
Diffstat (limited to 'FL')
| -rw-r--r-- | FL/Fl_Tree.H | 6 | ||||
| -rw-r--r-- | FL/Fl_Tree_Item.H | 10 |
2 files changed, 13 insertions, 3 deletions
diff --git a/FL/Fl_Tree.H b/FL/Fl_Tree.H index 9446e08d1..ab637b947 100644 --- a/FL/Fl_Tree.H +++ b/FL/Fl_Tree.H @@ -390,7 +390,13 @@ public: Fl_Tree_Item *find_item(const char *path); const Fl_Tree_Item *find_item(const char *path) const; int item_pathname(char *pathname, int pathnamelen, const Fl_Tree_Item *item) const; +#if FLTK_ABI_VERSION >= 10303 + const Fl_Tree_Item* find_clicked(int yonly=0) const; + Fl_Tree_Item* find_clicked(int yonly=0); +#else const Fl_Tree_Item *find_clicked() const; + Fl_Tree_Item *find_clicked(); +#endif Fl_Tree_Item *item_clicked(); Fl_Tree_Item *first(); Fl_Tree_Item *first_visible(); // deprecated in ABI 10303 diff --git a/FL/Fl_Tree_Item.H b/FL/Fl_Tree_Item.H index b51d90907..8493b7e44 100644 --- a/FL/Fl_Tree_Item.H +++ b/FL/Fl_Tree_Item.H @@ -103,7 +103,6 @@ protected: void draw_vertical_connector(int x, int y1, int y2, const Fl_Tree_Prefs &prefs); void draw_horizontal_connector(int x1, int x2, int y, const Fl_Tree_Prefs &prefs); void recalc_tree(); - const Fl_Tree_Item* find_clicked_(const Fl_Tree_Prefs &prefs, int yonly=0) const; // internal public: Fl_Tree_Item(const Fl_Tree_Prefs &prefs); // CTOR -- backwards compatible #if FLTK_ABI_VERSION >= 10303 @@ -377,8 +376,13 @@ public: ////////////////// // Events ////////////////// - const Fl_Tree_Item *find_clicked(const Fl_Tree_Prefs &prefs, int yonly=0) const; - Fl_Tree_Item *find_clicked(const Fl_Tree_Prefs &prefs, int yonly=0); +#if FLTK_ABI_VERSION >= 10303 + const Fl_Tree_Item* find_clicked(const Fl_Tree_Prefs &prefs, int yonly=0) const; + Fl_Tree_Item* find_clicked(const Fl_Tree_Prefs &prefs, int yonly=0); +#else + const Fl_Tree_Item* find_clicked(const Fl_Tree_Prefs &prefs) const; + Fl_Tree_Item* find_clicked(const Fl_Tree_Prefs &prefs); +#endif int event_on_collapse_icon(const Fl_Tree_Prefs &prefs) const; int event_on_label(const Fl_Tree_Prefs &prefs) const; /// Is this item the root of the tree? |
