summaryrefslogtreecommitdiff
path: root/src/gui
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2018-06-08 21:37:01 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2018-06-08 21:37:01 (GMT)
commit4e44b566ba4577f7bab66e492cb4b53872ff3e0a (patch)
tree54e10e9508451759dd507b1a172c4af82f2a9480 /src/gui
parentb2b00f3dedf496e4b22cdd8cdc14d9c8cb7cd7ac (diff)
Deleted a runtime warning by scrolling the right widget.
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/editor.c6
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));