diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2012-06-24 15:04:46 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2012-06-24 15:04:46 (GMT) |
commit | a4b70be160203f0c0c50e9ba4d8ab07db08bdeb6 (patch) | |
tree | 88eff9a8ccb6bcab73ef5a823fef632c38d0a24b /src/gtkext/gtkblockview.c | |
parent | 923776410a0b4d847f09428d93101a8b63c9ae60 (diff) |
Updated code to prepare the return of graph views.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@245 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gtkext/gtkblockview.c')
-rw-r--r-- | src/gtkext/gtkblockview.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gtkext/gtkblockview.c b/src/gtkext/gtkblockview.c index a420194..cd2d99d 100644 --- a/src/gtkext/gtkblockview.c +++ b/src/gtkext/gtkblockview.c @@ -123,7 +123,7 @@ GtkWidget *gtk_block_view_new(void) { GtkBlockView *result; /* Composant à retourner */ - result = gtk_type_new(GTK_TYPE_BLOCK_VIEW); + result = g_object_new(GTK_TYPE_BLOCK_VIEW, NULL); return GTK_WIDGET(result); @@ -151,6 +151,6 @@ static void gtk_block_view_attach_binary(GtkBlockView *view, GOpenidaBinary *bin buffer = g_openida_binary_get_disassembled_buffer(binary); - gtk_buffer_view_attach_buffer(GTK_BUFFER_VIEW(view), buffer, addr, code); + gtk_buffer_view_attach_buffer(GTK_BUFFER_VIEW(view), g_buffer_view_new(buffer), addr, code); } |