From f97bc58b93126e51deaf620d15c7771a9b233de5 Mon Sep 17 00:00:00 2001 From: Cyrille Bagard Date: Tue, 12 May 2015 18:59:11 +0000 Subject: Included buffer views in graph views in the right way. git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@535 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a --- ChangeLog | 5 +++++ src/gtkext/gtkgraphview.c | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 71a2009..40a562b 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,10 @@ 15-05-12 Cyrille Bagard + * src/gtkext/gtkgraphview.c: + Include buffer views in graph views in the right way. + +15-05-12 Cyrille Bagard + * src/gtkext/graph/layout.c: Fix compilation warnings. diff --git a/src/gtkext/gtkgraphview.c b/src/gtkext/gtkgraphview.c index d5b123e..1b18c64 100644 --- a/src/gtkext/gtkgraphview.c +++ b/src/gtkext/gtkgraphview.c @@ -364,7 +364,7 @@ static void gtk_graph_view_define_main_address(GtkGraphView *view, const vmpa2t gtk_graph_view_compute_requested_size(view, &width, &height); - gtk_widget_size_allocate(view, (GtkAllocation []){ { 0, 0, width, height } }); + gtk_widget_size_allocate(GTK_WIDGET(view), (GtkAllocation []){ { 0, 0, width, height } }); gtk_widget_size_allocate(view->support, (GtkAllocation []){ { 0, 0, width, height } }); change_editor_items_current_view_content(GTK_VIEW_PANEL(view)); @@ -598,7 +598,7 @@ static GtkBufferView **gtk_graph_view_load_nodes(GtkGraphView *view, GLoadedBina g_signal_connect(result[i], "highlight-changed", G_CALLBACK(gtk_graph_view_changed_highlights), view); gtk_widget_show(GTK_WIDGET(result[i])); - gtk_view_panel_attach_binary(GTK_VIEW_PANEL(result[i]), binary, BVW_BLOCK); + gtk_view_panel_attach_binary(GTK_VIEW_PANEL(result[i]), binary, BVW_GRAPH); gtk_view_panel_show_border(GTK_VIEW_PANEL(result[i]), true); -- cgit v0.11.2-87-g4458