From 2f58883f37a83953427f756fbcc6727694cb317e Mon Sep 17 00:00:00 2001 From: Leandro Pereira Date: Thu, 4 Jul 2019 22:29:48 -0700 Subject: Fix detailview scroll position restoring when auto-reloading section --- shell/shell.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'shell') diff --git a/shell/shell.c b/shell/shell.c index f76af991..d213344d 100644 --- a/shell/shell.c +++ b/shell/shell.c @@ -915,10 +915,13 @@ static gboolean reload_section(gpointer data) /* TODO:GTK3 */ #else RANGE_SET_VALUE(info_tree, vscrollbar, pos_info_scroll); - RANGE_SET_VALUE(detail_view, vscrollbar, pos_detail_scroll); #endif } +#if !GTK_CHECK_VERSION(3, 0, 0) + RANGE_SET_VALUE(detail_view, vscrollbar, pos_detail_scroll); +#endif + /* make the window drawable again */ #if GTK_CHECK_VERSION(2, 14, 0) gdk_window_thaw_updates(gdk_window); -- cgit v1.2.3