summaryrefslogtreecommitdiff
path: root/src/project.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2014-07-31 06:29:40 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2014-07-31 06:29:40 (GMT)
commita2eb5483fe74923e488013b2d8b94ded6340499e (patch)
treeae41a0c63e6b09ee3f878f5889d6ef8accfed7df /src/project.c
parenta5d8e3fc30cda2e13d30f099e93ab1b182fdc0bd (diff)
Merged two equal binary views enumerations.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@386 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/project.c')
-rw-r--r--src/project.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/project.c b/src/project.c
index faf232a..dc0c446 100644
--- a/src/project.c
+++ b/src/project.c
@@ -351,7 +351,6 @@ size_t g_study_project_attach_binary(GStudyProject *project, GLoadedBinary *bina
loaded_binary *loaded; /* Structure à renvoyer */
BinaryView i; /* Boucle de parcours */
GtkWidget *view; /* Affichage du binaire */
- BinaryDisplayType type; /* Options d'affichage */
GtkWidget *scroll; /* Surface d'exposition */
const char *name; /* Titre associé au binaire */
const char *lname; /* Description du binaire */
@@ -368,15 +367,12 @@ size_t g_study_project_attach_binary(GStudyProject *project, GLoadedBinary *bina
{
case BVW_BLOCK:
view = gtk_block_view_new(/*MRD_BLOCK*/);
- type = BDT_ASM;
break;
case BVW_GRAPH:
view = gtk_graph_view_new();
- type = BDT_GRAPH;
break;
case BVW_SOURCE:
view = gtk_source_view_new();
- type = BDT_ASM; /* FIXME */
break;
default: /* GCC ! */
break;
@@ -387,8 +383,8 @@ size_t g_study_project_attach_binary(GStudyProject *project, GLoadedBinary *bina
loaded->views[i] = GTK_VIEW_PANEL(view);
gtk_view_panel_attach_binary(loaded->views[i], binary,
- g_loaded_binary_display_addresses_in_text(binary, type),
- g_loaded_binary_display_code_in_text(binary, type));
+ g_loaded_binary_display_addresses_in_text(binary, i),
+ g_loaded_binary_display_code_in_text(binary, i));
/* Intégration finale dans un support défilant */