summaryrefslogtreecommitdiff
path: root/src/analysis
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-07-14 15:03:49 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-07-14 15:03:49 (GMT)
commit7a009c76657478c9270acec0c2b236523bfd68eb (patch)
tree6ee3e3f3c9482aebcdabaed1a15adbe6eee9a3ce /src/analysis
parent9441aee9dfb31332ffbfa64204b5e4466249d563 (diff)
Used abstract locations to scroll into displays.
Diffstat (limited to 'src/analysis')
-rw-r--r--src/analysis/db/items/move.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/analysis/db/items/move.c b/src/analysis/db/items/move.c
index 6300a86..e0e726a 100644
--- a/src/analysis/db/items/move.c
+++ b/src/analysis/db/items/move.c
@@ -36,6 +36,7 @@
#include "../collection-int.h"
#include "../item-int.h"
#include "../../../gui/core/global.h"
+#include "../../../glibext/gbinarycursor.h" // REMME
#include "../../../gtkext/gtkdisplaypanel.h"
@@ -437,7 +438,14 @@ static bool g_db_move_run(const GDbMove *move, const vmpa2t *addr)
gboolean do_move_in_main_loop(move_params *p)
{
- gtk_display_panel_scroll_to_address(p->panel, &p->addr, SPT_CENTER);
+ GLineCursor *___tmp;
+
+ ___tmp = g_binary_cursor_new();
+ g_binary_cursor_update(G_BINARY_CURSOR(___tmp), &p->addr);
+
+ gtk_display_panel_scroll_to_cursor(p->panel, ___tmp, SPT_CENTER);
+
+ g_object_unref(G_OBJECT(___tmp));
return G_SOURCE_REMOVE;