From 8ae0409cfc70aa399bc0083a1ce6bdb27cc2ce23 Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Thu, 22 Oct 2009 22:42:16 +0000 Subject: Support scrolling internally and thus fix bugs with big binaries. git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@133 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a --- src/project.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/project.c b/src/project.c index 6403b18..2b70a47 100644 --- a/src/project.c +++ b/src/project.c @@ -162,7 +162,7 @@ loaded_binary *load_openida_binary(GOpenidaBinary *binary) gtk_widget_show(view); - gtk_scrolled_window_add_with_viewport(GTK_SCROLLED_WINDOW(scrolledwindow), view); + gtk_container_add(GTK_CONTAINER(scrolledwindow), view); result->views[i] = scrolledwindow; @@ -602,7 +602,7 @@ GtkWidget *get_view_for_openida_project_binary(const openida_project *project, c if (project->binaries[i]->binary == binary) { result = get_loaded_binary_view(project->binaries[i], view); - *binview = GTK_BIN_VIEW(gtk_bin_get_child(gtk_bin_get_child(result))); + *binview = GTK_BIN_VIEW(gtk_bin_get_child(result)); break; } -- cgit v0.11.2-87-g4458