summaryrefslogtreecommitdiff
path: root/src/gui/tb
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2014-09-16 20:08:57 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2014-09-16 20:08:57 (GMT)
commitaf083f8bd6da340214ae392451dde5782fb79039 (patch)
treeffc45880157f4fdd986b1e16aa6498bef149185a /src/gui/tb
parent74642fbdeefaec21885e5fb6cad432e3e3b47cdb (diff)
Used the new vmpa_t type in binary portions.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@405 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/gui/tb')
-rw-r--r--src/gui/tb/portions.c10
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);
}