From 8826dca1066361b474139bcc5aeed2e3a5246ed0 Mon Sep 17 00:00:00 2001 From: Matthias Melcher Date: Thu, 5 Jan 2023 13:51:30 +0100 Subject: Add close buttons for individual tabs in Fl_Tabs (#628) Add close buttons for Fl_Tabs Introducing callback reasons FLUID shows all FL_WHEN_... options Adding Fl_Tabs overflow types Improved test/tabs to show new features --- src/Fl_Input_Choice.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/Fl_Input_Choice.cxx') diff --git a/src/Fl_Input_Choice.cxx b/src/Fl_Input_Choice.cxx index ae38cd1c6..059a1cc2d 100644 --- a/src/Fl_Input_Choice.cxx +++ b/src/Fl_Input_Choice.cxx @@ -205,7 +205,7 @@ void Fl_Input_Choice::menu_cb(Fl_Widget*, void *data) { { o->Fl_Widget::clear_changed(); if (o->when() & FL_WHEN_NOT_CHANGED) - o->do_callback(); + o->do_callback(FL_REASON_RESELECTED); } else { @@ -213,7 +213,7 @@ void Fl_Input_Choice::menu_cb(Fl_Widget*, void *data) { o->inp_->set_changed(); o->Fl_Widget::set_changed(); if (o->when() & (FL_WHEN_CHANGED|FL_WHEN_RELEASE)) - o->do_callback(); + o->do_callback(FL_REASON_CHANGED); } if (wp.deleted()) return; @@ -233,11 +233,11 @@ void Fl_Input_Choice::inp_cb(Fl_Widget*, void *data) { if (o->inp_->changed()) { o->Fl_Widget::set_changed(); if (o->when() & (FL_WHEN_CHANGED|FL_WHEN_RELEASE)) - o->do_callback(); + o->do_callback(FL_REASON_CHANGED); } else { o->Fl_Widget::clear_changed(); if (o->when() & FL_WHEN_NOT_CHANGED) - o->do_callback(); + o->do_callback(FL_REASON_RESELECTED); } if (wp.deleted()) return; -- cgit v1.2.3