diff test/fltk_browser.cc @ 1855:8178c7976185

might as well make Fl_Browser test compile (not currently used)
author corvid <corvid@lavabit.com>
date Sat, 22 Jan 2011 04:19:44 +0000
parents 02ef25700865
children bfb8bc9ddf62
line wrap: on
line diff
--- a/test/fltk_browser.cc	Sat Jan 22 03:08:17 2011 +0000
+++ b/test/fltk_browser.cc	Sat Jan 22 04:19:44 2011 +0000
@@ -19,28 +19,24 @@
 
 
 
-#include <fltk/Window.h>
-#include <fltk/Browser.h>
-#include <fltk/MultiBrowser.h>
-#include <fltk/Item.h>
-#include <fltk/run.h>
-
-using namespace fltk;
+#include <FL/Fl_Window.H>
+#include <FL/Fl_Browser.H>
+#include <FL/Fl.H>
 
 int main (int argc, char *argv[])
 {
-   Window *window = new Window (300, 300, "FLTK Browser");
+   Fl_Window *window = new Fl_Window (300, 300, "FLTK Browser");
    window->begin ();
-   Browser *browser = new MultiBrowser (0, 0, 300, 300);
+   Fl_Browser *browser = new Fl_Browser (0, 0, 300, 300);
    browser->begin ();
 
    for (int i = 0; i < 10; i++) {
-      new Item ("first");
-      new Item ("second");
-      new Item ("third");
+      browser->add("first");
+      browser->add("second");
+      browser->add("third");
    }
 
    window->resizable(browser);
    window->show();
-   return run();
+   return Fl::run();
 }