summaryrefslogtreecommitdiff
path: root/src/Fl_File_Browser.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'src/Fl_File_Browser.cxx')
-rw-r--r--src/Fl_File_Browser.cxx11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/Fl_File_Browser.cxx b/src/Fl_File_Browser.cxx
index a09a61984..abb6ff697 100644
--- a/src/Fl_File_Browser.cxx
+++ b/src/Fl_File_Browser.cxx
@@ -3,7 +3,7 @@
//
// Fl_File_Browser routines.
//
-// Copyright 1999-2005 by Michael Sweet.
+// Copyright 1999-2006 by Michael Sweet.
//
// This library is free software; you can redistribute it and/or
// modify it under the terms of the GNU Library General Public
@@ -167,13 +167,16 @@ Fl_File_Browser::item_width(void *p) const // I - List item data
const int *columns; // Columns
- // Set the font and size...
- fl_font(textfont(), textsize());
-
// Scan for newlines...
line = (FL_BLINE *)p;
columns = column_widths();
+ // Set the font and size...
+ if (line->txt[strlen(line->txt) - 1] == '/')
+ fl_font(textfont() | FL_BOLD, textsize());
+ else
+ fl_font(textfont(), textsize());
+
if (strchr(line->txt, '\n') == NULL &&
strchr(line->txt, column_char()) == NULL)
{