Skip to content

Commit

Permalink
Add missing function fl_define_FL_ICON_LABEL() (STR #3468).
Browse files Browse the repository at this point in the history
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.4@12886 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
  • Loading branch information
Albrecht Schlosser committed May 1, 2018
1 parent 5999091 commit da68d85
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions src/Fl_File_Icon.cxx
Expand Up @@ -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
Expand Down Expand Up @@ -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);
}


Expand Down

0 comments on commit da68d85

Please sign in to comment.