summaryrefslogtreecommitdiff
path: root/src/analysis/db/items
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-08-26 22:15:05 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-08-26 22:15:05 (GMT)
commit8ca477e012b11a19363542d171b8e973d637641c (patch)
tree94a4fcde1779f031946eff7a36075f41a17cd73b /src/analysis/db/items
parent4fb2ac107092671fe27fc3ebf9fc86dff7c3ec19 (diff)
Removed most of the functions using the editor items as global access to active items.
Diffstat (limited to 'src/analysis/db/items')
-rw-r--r--src/analysis/db/items/move.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/analysis/db/items/move.c b/src/analysis/db/items/move.c
index 4fd1667..562d749 100644
--- a/src/analysis/db/items/move.c
+++ b/src/analysis/db/items/move.c
@@ -35,7 +35,7 @@
#include "../collection-int.h"
#include "../item-int.h"
-#include "../../../gui/editem.h"
+#include "../../../gui/core/global.h"
#include "../../../gtkext/gtkdisplaypanel.h"
@@ -445,14 +445,13 @@ static bool g_db_move_run(const GDbMove *move, const vmpa2t *addr)
/* Lancement de l'opération */
- panel = g_editor_item_get_current_view(NULL);
+ panel = get_current_view();
if (panel != NULL)
{
params = (move_params *)calloc(1, sizeof(move_params));
params->panel = panel;
- g_object_ref(G_OBJECT(panel));
copy_vmpa(&params->addr, addr);