From 88f6f1c9a8861bed8d1907001a10c4605e268a5e Mon Sep 17 00:00:00 2001 From: Ricardo Markiewicz Date: Fri, 23 Sep 2005 17:20:16 +0000 Subject: [PATCH] Mejoro la ventana para ver el arbol. --- viewer/main.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) 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); -- 2.43.0