X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/blobdiff_plain/b4a23678596cdf0fd5993ec6650422a86d2012be..9939d45f997d2855218e3acf5b51222e9680ce31:/viewer/main.cpp diff --git a/viewer/main.cpp b/viewer/main.cpp index 6f3f2db..d54eac3 100644 --- a/viewer/main.cpp +++ b/viewer/main.cpp @@ -15,12 +15,14 @@ int main(int argc, char *argv[]) Gnome::Canvas::init (); Gtk::Window window; + Gtk::ScrolledWindow area; Gnome::Canvas::Canvas canvas; ViewBTree canvas_grp (canvas.root (), "test.idx"); - - window.add (canvas); - window.set_size_request (800, 100); + canvas.set_scroll_region (0, 0, 5000, 5000); + area.add (canvas); + window.add (area); + window.set_size_request (640, 480); window.show_all (); Gtk::Main::run(window);