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_Repeat_Button.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/Fl_Repeat_Button.cxx') diff --git a/src/Fl_Repeat_Button.cxx b/src/Fl_Repeat_Button.cxx index 03dc2a997..81b8fc5dd 100644 --- a/src/Fl_Repeat_Button.cxx +++ b/src/Fl_Repeat_Button.cxx @@ -23,7 +23,7 @@ void Fl_Repeat_Button::repeat_callback(void *v) { Fl_Button *b = (Fl_Button*)v; Fl::add_timeout(REPEAT,repeat_callback,b); - b->do_callback(); + b->do_callback(FL_REASON_RESELECTED); } int Fl_Repeat_Button::handle(int event) { @@ -43,7 +43,7 @@ int Fl_Repeat_Button::handle(int event) { if (value(newval)) { if (newval) { Fl::add_timeout(INITIALREPEAT,repeat_callback,this); - do_callback(); + do_callback(FL_REASON_SELECTED); } else { Fl::remove_timeout(repeat_callback,this); } -- cgit v1.2.3