Correct vertical scrollbar position after sorting in FListView

This commit is contained in:
Markus Gans 2018-11-27 01:32:21 +01:00
parent 7f5901d237
commit c3847b6b05
3 changed files with 34 additions and 41 deletions

View File

@ -1,3 +1,6 @@
2018-11-27 Markus Gans <guru.mail@muenster.de>
* Correct vertical scrollbar position after sorting in FListView
2018-11-25 Markus Gans <guru.mail@muenster.de> 2018-11-25 Markus Gans <guru.mail@muenster.de>
* Version 0.5.0 * Version 0.5.0
* Namespace fix in FTermFreeBSD and FTermOpenBSD * Namespace fix in FTermFreeBSD and FTermOpenBSD

View File

@ -4,23 +4,30 @@
# Copyright (c) 2018 by Markus Gans # Copyright (c) 2018 by Markus Gans
# #
Name: @PACKAGE@
%define libname libfinal %define libname libfinal
%define libsoname %{libname}0 %define libsoname %{libname}0
Name: @PACKAGE@
Version: @VERSION@ Version: @VERSION@
Release: %{buildno} Release: %{buildno}
License: LGPL-3.0 Summary: The Final Cut
Summary: The Final Cut License: LGPL-3.0-only
Url: https://github.com/gansm/finalcut/ Group: System/Libraries
Group: System/Libraries Url: https://github.com/gansm/finalcut/
Source: finalcut-%{version}.tar.gz Source: finalcut-%{version}.tar.gz
BuildRequires: automake BuildRequires: automake
BuildRequires: libtool BuildRequires: gcc-c++
BuildRequires: gcc-c++
BuildRequires: glib2-devel BuildRequires: glib2-devel
BuildRequires: libtool
BuildRequires: ncurses-devel 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}
%if 0%{?suse_version} > 1130 %if 0%{?suse_version} > 1130
BuildRequires: gpm-devel BuildRequires: gpm-devel
@ -31,19 +38,6 @@ BuildRequires: gpm
BuildRequires: gpm-devel BuildRequires: gpm-devel
%endif %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 %description
The Final Cut is a class library and widget toolkit with full mouse The Final Cut is a class library and widget toolkit with full mouse
support for creating a text-based user interface. The library supports 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. radio buttons, input lines, list boxes, status bars and so on.
%package devel %package devel
Group: Development/Libraries/C and C++
Summary: Development files for the final cut library Summary: Development files for the final cut library
Requires: %{libname} = %{version} Group: Development/Libraries/C and C++
Requires: %{name} = %{version} Requires: %{libname} = %{version}
Requires: %{name} = %{version}
%description devel %description devel
The Final Cut is a class library and widget toolkit with full mouse 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. radio buttons, input lines, list boxes, status bars and so on.
%package -n %{libsoname} %package -n %{libsoname}
Group: System/Libraries Summary: Console widget toolkit
Summary: Console widget toolkit Group: System/Libraries
Provides: %{libname} = %{version} Provides: %{libname} = %{version}
Provides: %{name} = %{version} Provides: %{name} = %{version}
%description -n %{libsoname} %description -n %{libsoname}
The Final Cut is a class library and widget toolkit with full mouse 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. radio buttons, input lines, list boxes, status bars and so on.
%package static %package static
Group: System/Libraries Summary: Console widget toolkit
Summary: Console widget toolkit Group: System/Libraries
%description static %description static
The Final Cut is a class library and widget toolkit with full mouse The Final Cut is a class library and widget toolkit with full mouse

View File

@ -2105,12 +2105,8 @@ void FListView::mouseHeaderClicked()
sort(); sort();
if ( isVisible() ) if ( isVisible() )
{ updateDrawing (true, false);
drawHeadlines();
drawList();
updateTerminal();
flush_out();
}
break; break;
} }