diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/core/items.c | 11 |
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 { |