From c3847b6b05dc2b8a3a54133f008470481b9fdd9b Mon Sep 17 00:00:00 2001 From: Markus Gans Date: Tue, 27 Nov 2018 01:32:21 +0100 Subject: [PATCH] Correct vertical scrollbar position after sorting in FListView --- ChangeLog | 3 +++ finalcut.spec.in | 64 +++++++++++++++++++++-------------------------- src/flistview.cpp | 8 ++---- 3 files changed, 34 insertions(+), 41 deletions(-) diff --git a/ChangeLog b/ChangeLog index c80a364c..1f531760 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,6 @@ +2018-11-27 Markus Gans + * Correct vertical scrollbar position after sorting in FListView + 2018-11-25 Markus Gans * Version 0.5.0 * Namespace fix in FTermFreeBSD and FTermOpenBSD diff --git a/finalcut.spec.in b/finalcut.spec.in index c74a947b..ab5a7b77 100644 --- a/finalcut.spec.in +++ b/finalcut.spec.in @@ -4,23 +4,30 @@ # Copyright (c) 2018 by Markus Gans # -Name: @PACKAGE@ %define libname libfinal %define libsoname %{libname}0 - -Version: @VERSION@ -Release: %{buildno} -License: LGPL-3.0 -Summary: The Final Cut -Url: https://github.com/gansm/finalcut/ -Group: System/Libraries -Source: finalcut-%{version}.tar.gz -BuildRequires: automake -BuildRequires: libtool -BuildRequires: gcc-c++ +Name: @PACKAGE@ +Version: @VERSION@ +Release: %{buildno} +Summary: The Final Cut +License: LGPL-3.0-only +Group: System/Libraries +Url: https://github.com/gansm/finalcut/ +Source: finalcut-%{version}.tar.gz +BuildRequires: automake +BuildRequires: gcc-c++ BuildRequires: glib2-devel +BuildRequires: libtool BuildRequires: ncurses-devel - +Requires: autoconf-archive +Requires: bdftopcf +Requires: gcc-c++ +Requires: grep +Requires: gzip +Requires: sed +Requires: tr +# Additionally required for tool operations +Requires: xxd %if 0%{?suse_version} %if 0%{?suse_version} > 1130 BuildRequires: gpm-devel @@ -31,19 +38,6 @@ BuildRequires: gpm BuildRequires: gpm-devel %endif -# Additionally required for tool operations -Requires: xxd -Requires: sed -Requires: tr -Requires: grep -Requires: gzip -Requires: bdftopcf -Requires: autoconf-archive -Requires: gcc-c++ - -Prefix: %_prefix -BuildRoot: %{_tmppath}/finalcut-%{version}-build - %description The Final Cut is a class library and widget toolkit with full mouse support for creating a text-based user interface. The library supports @@ -54,10 +48,10 @@ common controls like dialog windows, push buttons, check boxes, radio buttons, input lines, list boxes, status bars and so on. %package devel -Group: Development/Libraries/C and C++ Summary: Development files for the final cut library -Requires: %{libname} = %{version} -Requires: %{name} = %{version} +Group: Development/Libraries/C and C++ +Requires: %{libname} = %{version} +Requires: %{name} = %{version} %description devel The Final Cut is a class library and widget toolkit with full mouse @@ -69,10 +63,10 @@ common controls like dialog windows, push buttons, check boxes, radio buttons, input lines, list boxes, status bars and so on. %package -n %{libsoname} -Group: System/Libraries -Summary: Console widget toolkit -Provides: %{libname} = %{version} -Provides: %{name} = %{version} +Summary: Console widget toolkit +Group: System/Libraries +Provides: %{libname} = %{version} +Provides: %{name} = %{version} %description -n %{libsoname} The Final Cut is a class library and widget toolkit with full mouse @@ -84,8 +78,8 @@ common controls like dialog windows, push buttons, check boxes, radio buttons, input lines, list boxes, status bars and so on. %package static -Group: System/Libraries -Summary: Console widget toolkit +Summary: Console widget toolkit +Group: System/Libraries %description static The Final Cut is a class library and widget toolkit with full mouse diff --git a/src/flistview.cpp b/src/flistview.cpp index fd18fc58..690b8cdf 100644 --- a/src/flistview.cpp +++ b/src/flistview.cpp @@ -2105,12 +2105,8 @@ void FListView::mouseHeaderClicked() sort(); if ( isVisible() ) - { - drawHeadlines(); - drawList(); - updateTerminal(); - flush_out(); - } + updateDrawing (true, false); + break; }