diff options
Diffstat (limited to 'src/analysis/binary.c')
-rw-r--r-- | src/analysis/binary.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/analysis/binary.c b/src/analysis/binary.c index 1c6393a..fd0dd3b 100644 --- a/src/analysis/binary.c +++ b/src/analysis/binary.c @@ -1766,12 +1766,16 @@ static const char *g_loaded_binary_get_view_name(const GLoadedBinary *binary, un static GtkWidget *g_loaded_binary_build_view(GLoadedBinary *binary, unsigned int index) { GtkWidget *result; /* Support à retourner */ + GBufferCache *cache; /* Tampon par défaut */ + GBufferView *view; /* Vue sur ce même tampon */ GtkWidget *display; /* Composant d'affichage */ switch (index) { case BVW_BLOCK: - display = gtk_block_display_new(); + cache = g_loaded_binary_get_disassembled_cache(binary); + view = g_buffer_view_new(cache, NULL); + display = gtk_block_display_new(view); break; case BVW_GRAPH: |