summaryrefslogtreecommitdiff
path: root/src/Fl_File_Icon.cxx
diff options
context:
space:
mode:
authorAlbrecht Schlosser <albrechts.fltk@online.de>2018-05-01 09:37:03 +0000
committerAlbrecht Schlosser <albrechts.fltk@online.de>2018-05-01 09:37:03 +0000
commitda68d85935e6dc63caca4968392e3f75f3822176 (patch)
tree0435d69dd4e88f7342623623ec4981e4d4755bc2 /src/Fl_File_Icon.cxx
parent599909135bbae36f4fa1f294f7534826bac02eb7 (diff)
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
Diffstat (limited to 'src/Fl_File_Icon.cxx')
-rw-r--r--src/Fl_File_Icon.cxx10
1 files 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);
}