diff options
Diffstat (limited to 'src/analysis')
-rw-r--r-- | src/analysis/db/items/move.c | 10 |
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; |