summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2025-07-15 07:21:44 +0200
committerManoloFLTK <41016272+ManoloFLTK@users.noreply.github.com>2025-07-15 07:21:44 +0200
commite444371b1831fc4f84ef554902a07f8d52b3573f (patch)
tree5257fc431e751a44583283ef5dd00be2a101e324 /src
parent80e561c78e02e918afad9a451b20a4b1b44d2c86 (diff)
Fix: Redundant redeclaration of Fl_Shortcut fl_old_shortcut(const char*) (#1277)
Diffstat (limited to 'src')
-rw-r--r--src/Fl_Button.cxx3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/Fl_Button.cxx b/src/Fl_Button.cxx
index fb70114d6..e586e5ffa 100644
--- a/src/Fl_Button.cxx
+++ b/src/Fl_Button.cxx
@@ -329,3 +329,6 @@ Fl_Toggle_Button::Fl_Toggle_Button(int X,int Y,int W,int H,const char *L)
\param[in] v switch compact mode on (1) or off (0)
*/
void Fl_Button::compact(uchar v) { compact_ = v; }
+
+/// (for backwards compatibility)
+void Fl_Button::shortcut(const char *s) {shortcut(fl_old_shortcut(s));}