diff options
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/tb/portions.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/gui/tb/portions.c b/src/gui/tb/portions.c index 53d9dd4..53c7dea 100644 --- a/src/gui/tb/portions.c +++ b/src/gui/tb/portions.c @@ -67,7 +67,7 @@ static void g_portions_tbitem_finalize(GPortionsTbItem *); static void update_portions_item_binary(GEditorItem *, GLoadedBinary *); /* Fait suivre un changement d'adresse dans la barre. */ -static void track_address_on_binary_strip(GtkBinaryStrip *, vmpa_t, GObject *); +static void track_address_on_binary_strip(GtkBinaryStrip *, GEditorItem *); @@ -243,10 +243,14 @@ static void update_portions_item_binary(GEditorItem *item, GLoadedBinary *binary * * ******************************************************************************/ -static void track_address_on_binary_strip(GtkBinaryStrip *strip, vmpa_t addr, GObject *ref) +static void track_address_on_binary_strip(GtkBinaryStrip *strip, GEditorItem *item) { + const vmpa2t *addr; /* Nouvelle destination */ + GtkViewPanel *vpanel; /* Afficheur effectif de code */ - printf("===> CHANGE TO 0x%08llx\n", 123); + addr = gtk_binary_strip_get_location(strip); + vpanel = g_editor_item_get_current_view(item); + gtk_view_panel_scroll_to_address(vpanel, addr); } |