aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLeandro Pereira <leandro@hardinfo.org>2019-07-04 22:29:48 -0700
committerLeandro Pereira <leandro@hardinfo.org>2019-07-04 22:29:48 -0700
commit2f58883f37a83953427f756fbcc6727694cb317e (patch)
treef82f62f1f1d9f5cde5a0563768e0948871f889de
parente324d17efb17f4be989174c2b08de237883315e2 (diff)
Fix detailview scroll position restoring when auto-reloading section
-rw-r--r--shell/shell.c5
1 files changed, 4 insertions, 1 deletions
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);