diff options
Diffstat (limited to 'src/gui/tb')
-rw-r--r-- | src/gui/tb/portions.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/gui/tb/portions.c b/src/gui/tb/portions.c index 685f5ba..f60f83c 100644 --- a/src/gui/tb/portions.c +++ b/src/gui/tb/portions.c @@ -243,7 +243,7 @@ static void update_portions_item_binary(GEditorItem *item, GLoadedBinary *binary static void track_address_on_binary_strip(GtkBinaryStrip *strip, GEditorItem *item) { const vmpa2t *addr; /* Nouvelle destination */ - GtkDisplayPanel *panel; /* Afficheur effectif de code */ + GLoadedPanel *panel; /* Afficheur effectif de code */ GLoadedBinary *binary; /* Binaire chargé et actif */ addr = gtk_binary_strip_get_location(strip); @@ -251,7 +251,8 @@ static void track_address_on_binary_strip(GtkBinaryStrip *strip, GEditorItem *it panel = get_current_view(); binary = get_current_binary(); - gtk_display_panel_request_move(panel, addr); + if (GTK_IS_DISPLAY_PANEL(panel)) + gtk_display_panel_request_move(GTK_DISPLAY_PANEL(panel), addr); focus_address_in_editor_items(binary, addr, item); |