diff options
Diffstat (limited to 'src/project.c')
-rw-r--r-- | src/project.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/project.c b/src/project.c index 85368c6..652721b 100644 --- a/src/project.c +++ b/src/project.c @@ -2,7 +2,7 @@ /* OpenIDA - Outil d'analyse de fichiers binaires * project.c - gestion d'un groupe de fichiers binaires * - * Copyright (C) 2008-2011 Cyrille Bagard + * Copyright (C) 2008-2012 Cyrille Bagard * * This file is part of OpenIDA. * @@ -36,6 +36,7 @@ #include "gtkext/gtkgraphview.h" #include "gtkext/gtksourceview.h" #include "gtkext/gtkviewpanel.h" +#include "gui/panels/panel.h" #include "panels/panel.h" @@ -500,9 +501,9 @@ void detach_binary_to_openida_project(openida_project *project, GOpenidaBinary * size_t i; /* Boucle de parcours */ dpanel = GTK_DOCK_PANEL(g_object_get_data(project->ref, "binpanel")); - ditem = gtk_dock_panel_get_item_from_binary(project, binary); + //ditem = gtk_dock_panel_get_item_from_binary(project, binary); FIXME !! - gtk_dock_panel_remove_item(dpanel, ditem); + //gtk_dock_panel_remove_item(dpanel, ditem); for (i = 0; i < project->binaries_count; i++) if (project->binaries[i]->binary == binary) break; @@ -840,7 +841,7 @@ void display_new_binary_of_openida_project(GOpenidaBinary *binary, openida_proje GtkDockPanel *dpanel; /* Support de panneaux */ GtkWidget *view; /* Affichage du code binaire */ char *title; /* Titre associƩ au binaire */ - GDockItem *ditem; /* Panneau avec ses infos. */ + GEditorItem *item; /* Panneau avec ses infos. */ index = attach_binary_to_openida_project(project, binary); @@ -852,9 +853,8 @@ void display_new_binary_of_openida_project(GOpenidaBinary *binary, openida_proje gdk_threads_enter(); - ditem = g_dock_item_new(strrchr(title, '/') + 1, view); - g_dock_item_set_desc(ditem, title); - gtk_dock_panel_add_item(dpanel, ditem); + item = g_panel_item_new(strrchr(title, G_DIR_SEPARATOR) + 1, title, view, "M"); + g_panel_item_dock(G_PANEL_ITEM(item)); gdk_flush (); gdk_threads_leave(); |