diff options
| author | Greg Ercolano <erco@seriss.com> | 2012-09-17 22:44:54 +0000 |
|---|---|---|
| committer | Greg Ercolano <erco@seriss.com> | 2012-09-17 22:44:54 +0000 |
| commit | 9ddc9f70a82ecc2385cd6b1b7fbbcbbadbbc8927 (patch) | |
| tree | 7f12bb390a17452ed31f64bff465ef8eb6b8a9ed | |
| parent | 7ee797304098d0906c2eff4bfe088290d2c58165 (diff) | |
Changed example code to make widths[] array static, as per
problems reported in fltk.general thread on or around 09/12/12 ("Subject: Fl_Browser columns")..
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@9682 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
| -rw-r--r-- | FL/Fl_Browser.H | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/FL/Fl_Browser.H b/FL/Fl_Browser.H index cf20cf103..4c4521d72 100644 --- a/FL/Fl_Browser.H +++ b/FL/Fl_Browser.H @@ -257,7 +257,7 @@ public: Example: \code Fl_Browser *b = new Fl_Browser(..); - int widths[] = { 50, 50, 50, 70, 70, 40, 40, 70, 70, 50, 0 }; // widths for each column + static int widths[] = { 50, 50, 50, 70, 70, 40, 40, 70, 70, 50, 0 }; // widths for each column b->column_widths(widths); // assign array to widget b->column_char('\t'); // use tab as the column character b->add("USER\tPID\tCPU\tMEM\tVSZ\tRSS\tTTY\tSTAT\tSTART\tTIME\tCOMMAND"); |
