Added hint how to navigate through panes

Resolves: rhbz#1191112

Signed-off-by: Jaroslav Škarvada <jskarvad@redhat.com>
This commit is contained in:
Jaroslav Škarvada 2015-02-11 21:07:01 +01:00
parent 197e744bc3
commit da607ef555
2 changed files with 23 additions and 1 deletions

View File

@ -0,0 +1,15 @@
diff --git a/src/display.cpp b/src/display.cpp
index b6c9200..c051520 100644
--- a/src/display.cpp
+++ b/src/display.cpp
@@ -127,7 +127,9 @@ void show_tab(unsigned int tab)
if (c && strlen(c) > 0)
mvwprintw(bottom_line, 0,0, c);
else
- mvwprintw(bottom_line, 0,0,"<ESC> %s | ",_("Exit"));
+ mvwprintw(bottom_line, 0, 0,
+ "<ESC> %s | <TAB> / <Shift + TAB> %s | ", _("Exit"),
+ _("Navigate"));
current_tab = tab;

View File

@ -1,6 +1,6 @@
Name: powertop
Version: 2.7
Release: 2%{?dist}
Release: 3%{?dist}
Summary: Power consumption monitor
Group: Applications/System
@ -14,6 +14,8 @@ Patch0: powertop-2.7-always-create-params.patch
Patch1: powertop-2.7-tunable-overflow-fix.patch
# Taken from upstream
Patch2: powertop-2.7-auto-tune-crash-fix.patch
# Sent upstream, patch by Pierre-Yves Chibon <pingou@pingoured.fr>
Patch3: powertop-2.7-navigate-hint.patch
BuildRoot: %{_tmppath}/%{name}-%{version}-%{release}-root-%(%{__id_u} -n)
BuildRequires: gettext, ncurses-devel, pciutils-devel, zlib-devel, libnl3-devel
BuildRequires: systemd
@ -30,6 +32,7 @@ computer use more power than necessary while it is idle.
%patch0 -p1 -b .always-create-params
%patch1 -p1 -b .tunable-overfow-fix
%patch2 -p1 -b .autotune-crash-fix
%patch3 -p1 -b .navigate-hint
%build
%configure
@ -70,6 +73,10 @@ rm -rf %{buildroot}
%{_unitdir}/powertop.service
%changelog
* Wed Feb 11 2015 Jaroslav Škarvada <jskarvad@redhat.com> - 2.7-3
- Added hint how to navigate through panes, (by navigate-hint patch)
Resolves: rhbz#1191112
* Fri Jan 30 2015 Jaroslav Škarvada <jskarvad@redhat.com> - 2.7-2
- Fixed crash when running with --auto-tune (by auto-tune-crash-fix patch)
Resolves: rhbz#1187452