diff options
Diffstat (limited to 'src/analysis')
-rw-r--r-- | src/analysis/project.c | 14 |
1 files changed, 9 insertions, 5 deletions
diff --git a/src/analysis/project.c b/src/analysis/project.c index 623779b..08df9d8 100644 --- a/src/analysis/project.c +++ b/src/analysis/project.c @@ -41,6 +41,7 @@ #include "../gtkext/gtkblockview.h" #include "../gtkext/gtkgraphview.h" #include "../gtkext/gtksourceview.h" +#include "../gui/core/panels.h" #include "../gui/panels/log.h" #include "../gui/panels/panel.h" @@ -64,7 +65,7 @@ typedef struct _loaded_binary GtkViewPanel *views[BVW_COUNT]; /* Composants pour l'affichage */ GtkWidget *scrollwindows[BVW_COUNT]; /* Supports pour l'affichage */ - GEditorItem *item; /* Support d'affichage final */ + GPanelItem *item; /* Support d'affichage final */ } loaded_binary; @@ -594,7 +595,8 @@ void g_study_project_add_loaded_binary(GLoadedBinary *binary, GStudyProject *pro g_signal_connect(project->binaries[index]->views[BVW_BLOCK], "size-allocate", G_CALLBACK(scroll_for_the_first_time), binary); - g_panel_item_dock(G_PANEL_ITEM(project->binaries[index]->item)); + /* FIXME : les panneaux sont incrustés d'office ! */ + //g_panel_item_dock(project->binaries[index]->item); } @@ -666,7 +668,8 @@ size_t g_study_project_attach_binary(GStudyProject *project, GLoadedBinary *bina name = g_loaded_binary_get_name(binary, false); lname = g_loaded_binary_get_name(binary, true); - loaded->item = g_panel_item_new(PIP_BINARY_VIEW, project->ref, name, lname, scroll, "N"); + loaded->item = g_panel_item_new(PIP_BINARY_VIEW, name, lname, scroll, "N"); + register_panel_item(loaded->item, project->ref); /* Enregistrement dans le projet */ @@ -781,7 +784,8 @@ void g_study_project_display(const GStudyProject *project) size_t i; /* Boucle de parcours */ for (i = 0; i < project->binaries_count; i++) - g_panel_item_dock(G_PANEL_ITEM(project->binaries[i]->item)); + /* FIXME : les panneaux sont incrustés d'office ! */ + ;//g_panel_item_dock(project->binaries[i]->item); } @@ -803,7 +807,7 @@ static void g_study_project_hide(const GStudyProject *project) size_t i; /* Boucle de parcours */ for (i = 0; i < project->binaries_count; i++) - g_panel_item_undock(G_PANEL_ITEM(project->binaries[i]->item)); + g_panel_item_undock(project->binaries[i]->item); } |