summaryrefslogtreecommitdiff
path: root/src/gtkext/gtkblockview.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/gtkext/gtkblockview.c')
-rw-r--r--src/gtkext/gtkblockview.c4
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);
}