summaryrefslogtreecommitdiff
path: root/src/Fl_Widget.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_Widget.cxx')
-rw-r--r--src/Fl_Widget.cxx15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/Fl_Widget.cxx b/src/Fl_Widget.cxx
index 550f1eb1c..740dad6fd 100644
--- a/src/Fl_Widget.cxx
+++ b/src/Fl_Widget.cxx
@@ -293,6 +293,21 @@ Fl_Widget::copy_label(const char *a) {
redraw_label();
}
+/** Calls the widget callback.
+
+ Causes a widget to invoke its callback function with arbitrary arguments.
+ \param[in] o call the callback with \a o as the widget argument
+ \param[in] arg call the callback with \a arg as the user data argument
+ \see callback()
+*/
+void
+Fl_Widget::do_callback(Fl_Widget* o,void* arg) {
+ Fl_Watch wp(o);
+ callback_(o,arg);
+ if (wp.deleted()) return;
+ if (callback_ != default_callback)
+ clear_changed();
+}
//
// End of "$Id$".