From: Ricardo Markiewicz Date: Fri, 23 Sep 2005 17:20:16 +0000 (+0000) Subject: Mejoro la ventana para ver el arbol. X-Git-Tag: 1_0-pre1~117 X-Git-Url: https://git.llucax.com/z.facultad/75.52/treemulator.git/commitdiff_plain/88f6f1c9a8861bed8d1907001a10c4605e268a5e Mejoro la ventana para ver el arbol. --- 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);