summaryrefslogtreecommitdiff
path: root/src/analysis/project.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2016-03-09 12:55:20 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2016-03-09 12:55:20 (GMT)
commitf8f804cf7ff9a62404b843cf303c762101572784 (patch)
treec35edc5dc8fb5ded9cc8d975d12a1eac2c3e330a /src/analysis/project.c
parent235b34006d734d55333a182ffd8bbe7fbf8f54bc (diff)
Reorganized the whole code dealing with dockable panels.
Diffstat (limited to 'src/analysis/project.c')
-rw-r--r--src/analysis/project.c14
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);
}