diff options
Diffstat (limited to 'src/project.c')
-rw-r--r-- | src/project.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/project.c b/src/project.c index dc1efd1..bf2c3e0 100644 --- a/src/project.c +++ b/src/project.c @@ -115,8 +115,7 @@ loaded_binary *load_openida_binary(openida_binary *binary) break; } - if (i == 0) - gtk_block_view_set_rendering_lines(GTK_BLOCK_VIEW(view), get_openida_binary_lines(binary)); + gtk_bin_view_set_rendering_lines(GTK_BIN_VIEW(view), get_openida_binary_lines(binary), NULL); gtk_widget_show(view); @@ -429,6 +428,7 @@ void detach_binary_to_openida_project(openida_project *project, openida_binary * * Paramètres : project = projet à consulter. * * binary = binaire chargé, encadré et concerné. * * view = type d'affichage requis. * +* binview = afficheur effectif de code binaire. [OUT] * * * * Description : Fournit un support d'affichage donné pour un binaire chargé. * * * @@ -438,7 +438,7 @@ void detach_binary_to_openida_project(openida_project *project, openida_binary * * * ******************************************************************************/ -GtkWidget *get_view_for_openida_project_binary(const openida_project *project, const openida_binary *binary, BinaryView view) +GtkWidget *get_view_for_openida_project_binary(const openida_project *project, const openida_binary *binary, BinaryView view, GtkBinView **binview) { GtkWidget *result; /* Composant GTK à retourner */ size_t i; /* Boucle de parcours */ @@ -449,6 +449,7 @@ GtkWidget *get_view_for_openida_project_binary(const openida_project *project, c if (project->binaries[i]->binary == binary) { result = get_loaded_binary_view(project->binaries[i], view); + *binview = GTK_BIN_VIEW(gtk_bin_get_child(gtk_bin_get_child(result))); break; } |