5 #include <libgnomecanvasmm.h>
7 #include "view_btree.h"
8 #include "view_properties.h"
10 using namespace Gnome::Canvas;
12 int main(int argc, char *argv[])
14 Gtk::Main kit(argc, argv);
16 Gnome::Canvas::init ();
21 Gtk::ScrolledWindow area;
22 Gnome::Canvas::Canvas canvas;
24 ViewBTree canvas_grp (canvas.root (), "test.idx");
25 canvas.set_scroll_region (0, 0, 5000, 5000);
28 hbox.pack_start (frame, false, false, 10);
29 hbox.pack_start (area);
32 window.set_size_request (640, 480);
35 /* Conecto el Canvas con el Frame */
36 canvas_grp.signal_selected ().connect ( sigc::mem_fun (frame, &ViewProperties::ShowItem) );
37 Gtk::Main::run(window);