From 11fccec026701adbe5201e4b655c1234b8388228 Mon Sep 17 00:00:00 2001 From: Michael R Sweet Date: Sun, 28 Apr 2002 08:42:33 +0000 Subject: Fix which icon is shown in FLUID (had it backwards) Set pattern, type, etc. before setting value in file chooser. Otherwise the filename wouldn't get highlighted the second time it was shown. git-svn-id: file:///fltk/svn/fltk/branches/branch-1.1@2120 ea41ed52-d2ee-0310-a9c1-e6b18d33e121 --- fluid/Fl_Type.cxx | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'fluid') diff --git a/fluid/Fl_Type.cxx b/fluid/Fl_Type.cxx index fccc699d9..a65defc73 100644 --- a/fluid/Fl_Type.cxx +++ b/fluid/Fl_Type.cxx @@ -1,5 +1,5 @@ // -// "$Id: Fl_Type.cxx,v 1.6.2.6.2.6 2002/04/27 18:34:11 easysw Exp $" +// "$Id: Fl_Type.cxx,v 1.6.2.6.2.7 2002/04/28 08:42:32 easysw Exp $" // // Widget type code for the Fast Light Tool Kit (FLTK). // @@ -139,8 +139,8 @@ void Widget_Browser::item_draw(void *v, int x, int y, int, int) const { x += 3 + 16 + l->level * 10; if (l->new_selected) fl_color(fl_contrast(FL_BLACK,FL_SELECTION_COLOR)); else fl_color(FL_BLACK); - if (l->is_public() == 0) unlock_pixmap.draw(x - 16, y); - else if (l->is_public() > 0) lock_pixmap.draw(x - 16, y); + if (l->is_public() == 0) lock_pixmap.draw(x - 16, y); + else if (l->is_public() > 0) unlock_pixmap.draw(x - 16, y); if (l->is_parent()) { if (!l->next || l->next->level <= l->level) { if (l->open_!=(l==pushedtitle)) { @@ -682,5 +682,5 @@ void Fl_Type::read_property(const char *c) { int Fl_Type::read_fdesign(const char*, const char*) {return 0;} // -// End of "$Id: Fl_Type.cxx,v 1.6.2.6.2.6 2002/04/27 18:34:11 easysw Exp $". +// End of "$Id: Fl_Type.cxx,v 1.6.2.6.2.7 2002/04/28 08:42:32 easysw Exp $". // -- cgit v1.2.3