diff options
| author | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-04-28 08:42:33 +0000 |
|---|---|---|
| committer | Michael R Sweet <michael.r.sweet@gmail.com> | 2002-04-28 08:42:33 +0000 |
| commit | 11fccec026701adbe5201e4b655c1234b8388228 (patch) | |
| tree | 9b54a6bc6335ebd280f64cd5f7a2be5e0f84ad39 /fluid | |
| parent | 9f5d6a0ecbf4c8beaed7028c13f52aad443cf394 (diff) | |
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
Diffstat (limited to 'fluid')
| -rw-r--r-- | fluid/Fl_Type.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
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 $". // |
