summaryrefslogtreecommitdiff
path: root/src/project.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2012-01-11 02:20:30 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2012-01-11 02:20:30 (GMT)
commit486f0bf0a27ffed3e9fde2f183974ae029b45c54 (patch)
tree8840eaab0629f83e7501506b91101ce4f2d42a5d /src/project.c
parent6ebdbfbca9e7bc34fe0f280e4a6a65c24c5003e9 (diff)
Defined new panel definitions for the editor GUI.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@223 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/project.c')
-rw-r--r--src/project.c14
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();