summaryrefslogtreecommitdiff
path: root/FL
diff options
context:
space:
mode:
Diffstat (limited to 'FL')
-rw-r--r--FL/Fl.H2
-rw-r--r--FL/Fl_Group.H12
2 files changed, 11 insertions, 3 deletions
diff --git a/FL/Fl.H b/FL/Fl.H
index 88d963d5c..e11e924d4 100644
--- a/FL/Fl.H
+++ b/FL/Fl.H
@@ -537,7 +537,7 @@ public:
/** See Fl_Widget* pushed(Fl_Widget*) */
static Fl_Widget* pushed() {return pushed_;}
static void pushed(Fl_Widget*);
- /** See Fl_Widget* focus(Fl_Widget*) */
+ /** Gets the current Fl::focus() widget. \sa Fl::focus(Fl_Widget*) */
static Fl_Widget* focus() {return focus_;}
static void focus(Fl_Widget*);
static void add_handler(int (*h)(int));
diff --git a/FL/Fl_Group.H b/FL/Fl_Group.H
index ac821cc9a..9155fb521 100644
--- a/FL/Fl_Group.H
+++ b/FL/Fl_Group.H
@@ -166,9 +166,17 @@ public:
void add_resizable(Fl_Widget& o) {resizable_ = &o; add(o);}
void init_sizes();
- // back compatibility function:
- void focus(Fl_Widget* o) {o->take_focus();}
+ // back compatibility functions:
+
+ /**
+ \deprecated This is for backwards compatibility only. You should use
+ \e W->%take_focus() instead.
+ \sa Fl_Widget::take_focus();
+ */
+ void focus(Fl_Widget* W) {W->take_focus();}
+ /** This is for forms compatibility only */
Fl_Widget* & _ddfdesign_kludge() {return resizable_;}
+ /** This is for forms compatibility only */
void forms_end();
};