From da68d85935e6dc63caca4968392e3f75f3822176 Mon Sep 17 00:00:00 2001 From: Albrecht Schlosser Date: Tue, 1 May 2018 09:37:03 +0000 Subject: Add missing function fl_define_FL_ICON_LABEL() (STR #3468). git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12886 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- src/Fl_File_Icon.cxx | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/Fl_File_Icon.cxx b/src/Fl_File_Icon.cxx index a7effa14f..5c59e9be8 100644 --- a/src/Fl_File_Icon.cxx +++ b/src/Fl_File_Icon.cxx @@ -50,6 +50,13 @@ Fl_File_Icon *Fl_File_Icon::first_ = (Fl_File_Icon *)0; +// Registers the FL_ICON_LABEL drawing function +Fl_Labeltype fl_define_FL_ICON_LABEL() { + Fl::set_labeltype(_FL_ICON_LABEL, Fl_File_Icon::labeltype, 0); + return _FL_ICON_LABEL; +} + + /** Creates a new Fl_File_Icon with the specified information. \param[in] p filename pattern @@ -394,8 +401,7 @@ Fl_File_Icon::draw(int x, // I - Upper-lefthand X */ void Fl_File_Icon::label(Fl_Widget *w) // I - Widget to label { - Fl::set_labeltype(_FL_ICON_LABEL, labeltype, 0); - w->label(_FL_ICON_LABEL, (const char*)this); + w->label(FL_ICON_LABEL, (const char*)this); } -- cgit v1.2.3