summaryrefslogtreecommitdiff
path: root/src/gui/editem.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2012-01-16 01:29:18 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2012-01-16 01:29:18 (GMT)
commitd487ea54850c85ea22df22af3b21b57d9ad0fd2f (patch)
treee84eefa64d8845cb97ca98c95cc9acf713ccfcf8 /src/gui/editem.c
parent725304423eccf57b8e829542670b5abe7b00eeb4 (diff)
Updated menus on view change.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@227 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gui/editem.c')
-rw-r--r--src/gui/editem.c23
1 files changed, 21 insertions, 2 deletions
diff --git a/src/gui/editem.c b/src/gui/editem.c
index ac3461c..4afd7bd 100644
--- a/src/gui/editem.c
+++ b/src/gui/editem.c
@@ -2,7 +2,7 @@
/* OpenIDA - Outil d'analyse de fichiers binaires
* editem.c - gestion des différents éléments réactifs de l'éditeurs
*
- * Copyright (C) 2010-2011 Cyrille Bagard
+ * Copyright (C) 2010-2012 Cyrille Bagard
*
* This file is part of OpenIDA.
*
@@ -113,6 +113,25 @@ GtkWidget *g_editor_item_get_widget(const GEditorItem *item)
}
+/******************************************************************************
+* *
+* Paramètres : item = instance à consulter. *
+* *
+* Description : Fournit l'affichage de binaire courant. *
+* *
+* Retour : Instance en place ou NULL si aucune. *
+* *
+* Remarques : - *
+* *
+******************************************************************************/
+
+GtkViewPanel *g_editor_item_get_current_view(const GEditorItem *item)
+{
+ return g_object_get_data(item->ref, "current_view");
+
+}
+
+
/* ---------------------------------------------------------------------------------- */
/* MANIPULATION D'ENSEMBLES */
@@ -184,7 +203,7 @@ void change_editor_items_current_view(GObject *ref, GtkViewPanel *view)
g_object_set_data(ref, "current_view", view);
editem_list_for_each(iter, _editem_list)
- if (iter->update_binary != NULL)
+ if (iter->update_view != NULL)
iter->update_view(iter, view);
}