summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--src/gtkext/gtkgraphview.c4
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 <nocbos@gmail.com>
+ * src/gtkext/gtkgraphview.c:
+ Include buffer views in graph views in the right way.
+
+15-05-12 Cyrille Bagard <nocbos@gmail.com>
+
* 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);