diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/editor.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gui/editor.c b/src/gui/editor.c index ea2fe1f..d63b3a9 100644 --- a/src/gui/editor.c +++ b/src/gui/editor.c @@ -1699,6 +1699,7 @@ static gboolean scroll_for_the_first_time(GtkWidget *widget, GdkEvent *event, GL { GExeFormat *format; /* Format associé au binaire */ vmpa2t target; /* Position initiale à viser */ + GtkWidget *panel; /* Panneau à dérouler */ g_signal_handlers_disconnect_by_func(widget, G_CALLBACK(scroll_for_the_first_time), content); @@ -1707,7 +1708,10 @@ static gboolean scroll_for_the_first_time(GtkWidget *widget, GdkEvent *event, GL format = g_loaded_binary_get_format(G_LOADED_BINARY(content)); if (g_exe_format_get_main_address(format, &target)) - gtk_display_panel_request_move(GTK_DISPLAY_PANEL(widget), &target); + { + panel = get_loaded_panel_from_built_view(widget); + gtk_display_panel_request_move(GTK_DISPLAY_PANEL(panel), &target); + } g_object_unref(G_OBJECT(format)); |