summaryrefslogtreecommitdiff
path: root/src/gui
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/gui
parent9441aee9dfb31332ffbfa64204b5e4466249d563 (diff)
Used abstract locations to scroll into displays.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/core/items.c11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/gui/core/items.c b/src/gui/core/items.c
index a2320cd..fd78b41 100644
--- a/src/gui/core/items.c
+++ b/src/gui/core/items.c
@@ -140,6 +140,7 @@ static gboolean notify_view_panel_focus_change(GLoadedPanel *panel, GdkEventFocu
static void start_moving_to_address_in_view_panel(GtkDisplayPanel *panel, const vmpa2t *addr, gpointer unused)
{
const vmpa2t *src; /* Position courante de curseur*/
+ GLineCursor *___tmp;
GDbMove *move; /* Déplacement à organiser */
GLoadedBinary *binary; /* Binaire en cours d'étude */
@@ -147,7 +148,15 @@ static void start_moving_to_address_in_view_panel(GtkDisplayPanel *panel, const
/* S'il n'y a pas de passif, pas besoin d'historique */
if (src == NULL)
- gtk_display_panel_scroll_to_address(panel, addr, SPT_CENTER);
+ {
+ ___tmp = g_binary_cursor_new();
+ g_binary_cursor_update(G_BINARY_CURSOR(___tmp), addr);
+
+ gtk_display_panel_scroll_to_cursor(panel, ___tmp, SPT_CENTER);
+
+ g_object_unref(G_OBJECT(___tmp));
+
+ }
else
{