From 9ddc9f70a82ecc2385cd6b1b7fbbcbbadbbc8927 Mon Sep 17 00:00:00 2001 From: Greg Ercolano Date: Mon, 17 Sep 2012 22:44:54 +0000 Subject: 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 --- FL/Fl_Browser.H | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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"); -- cgit v1.2.3