diff options
author | Lars Wendler <polynomial-c@gentoo.org> | 2021-08-29 16:30:06 +0200 |
---|---|---|
committer | Lars Wendler <polynomial-c@gentoo.org> | 2021-08-29 16:31:42 +0200 |
commit | ec16067bb1ed0297ce5d38698df511c7d30c4ebb (patch) | |
tree | 5d28e47fe910a85834f4acbf6c052f3b8eae07e7 /sys-process/htop/files | |
parent | sys-process/htop: Bump to version 3.1.0_rc1 (diff) | |
download | gentoo-ec16067bb1ed0297ce5d38698df511c7d30c4ebb.tar.gz gentoo-ec16067bb1ed0297ce5d38698df511c7d30c4ebb.tar.bz2 gentoo-ec16067bb1ed0297ce5d38698df511c7d30c4ebb.zip |
sys-process/htop: Removed old
Signed-off-by: Lars Wendler <polynomial-c@gentoo.org>
Diffstat (limited to 'sys-process/htop/files')
-rw-r--r-- | sys-process/htop/files/htop-3.0.3-tinfo.patch | 38 | ||||
-rw-r--r-- | sys-process/htop/files/htop-3.0.4-sort_column_header_highlight.patch | 153 |
2 files changed, 0 insertions, 191 deletions
diff --git a/sys-process/htop/files/htop-3.0.3-tinfo.patch b/sys-process/htop/files/htop-3.0.3-tinfo.patch deleted file mode 100644 index ea65a799ed7a..000000000000 --- a/sys-process/htop/files/htop-3.0.3-tinfo.patch +++ /dev/null @@ -1,38 +0,0 @@ -From ead978bce6236a55d75b72e059686766fa708db4 Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= <cgzones@googlemail.com> -Date: Mon, 7 Dec 2020 15:30:56 +0100 -Subject: [PATCH] configure: check for additional linker flags for keypad(3) - -Gentoo requires an explicit addition of -ltinfo - -Resolves: https://bugs.gentoo.org/show_bug.cgi?id=690840 ---- - configure.ac | 8 ++++++++ - 1 file changed, 8 insertions(+) - -diff --git a/configure.ac b/configure.ac -index 460b16aa..f91d8e92 100644 ---- a/configure.ac -+++ b/configure.ac -@@ -217,6 +217,10 @@ if test "x$enable_unicode" = xyes; then - [AC_CHECK_HEADERS([ncurses/ncurses.h],[:], - [AC_CHECK_HEADERS([ncurses/curses.h],[:], - [AC_CHECK_HEADERS([ncurses.h],[:],[missing_headers="$missing_headers $ac_header"])])])]) -+ -+ # check if additional linker flags are needed for keypad(3) -+ # (at this point we already link against a working ncurses library with wide character support) -+ AC_SEARCH_LIBS([keypad], [tinfow tinfo]) - else - HTOP_CHECK_SCRIPT([ncurses6], [refresh], [HAVE_LIBNCURSES], "ncurses6-config", - HTOP_CHECK_SCRIPT([ncurses], [refresh], [HAVE_LIBNCURSES], "ncurses5-config", -@@ -229,6 +233,10 @@ else - [AC_CHECK_HEADERS([ncurses/curses.h],[:], - [AC_CHECK_HEADERS([ncurses/ncurses.h],[:], - [AC_CHECK_HEADERS([ncurses.h],[:],[missing_headers="$missing_headers $ac_header"])])])]) -+ -+ # check if additional linker flags are needed for keypad(3) -+ # (at this point we already link against a working ncurses library) -+ AC_SEARCH_LIBS([keypad], [tinfo]) - fi - - if test "$my_htop_platform" = "freebsd"; then diff --git a/sys-process/htop/files/htop-3.0.4-sort_column_header_highlight.patch b/sys-process/htop/files/htop-3.0.4-sort_column_header_highlight.patch deleted file mode 100644 index a2b6a0d4259a..000000000000 --- a/sys-process/htop/files/htop-3.0.4-sort_column_header_highlight.patch +++ /dev/null @@ -1,153 +0,0 @@ -From 86d293125565a15bbd94683080dbc755c5d7edee Mon Sep 17 00:00:00 2001 -From: =?UTF-8?q?Christian=20G=C3=B6ttsche?= <cgzones@googlemail.com> -Date: Tue, 22 Dec 2020 17:12:38 +0100 -Subject: [PATCH] Restore highlighted header of current sorted process column - ---- - MainPanel.c | 10 ++++++++-- - Panel.c | 22 ++++++++++------------ - Panel.h | 6 ++++-- - ScreenManager.c | 2 +- - htop.c | 2 -- - 5 files changed, 23 insertions(+), 19 deletions(-) - -diff --git a/MainPanel.c b/MainPanel.c -index 949138dc..c8a4c059 100644 ---- a/MainPanel.c -+++ b/MainPanel.c -@@ -102,7 +102,7 @@ static HandlerResult MainPanel_eventHandler(Panel* super, int ch) { - MainPanel_updateTreeFunctions(this, this->state->settings->treeView); - } - if (reaction & HTOP_UPDATE_PANELHDR) { -- ProcessList_printHeader(this->state->pl, Panel_getHeader(super)); -+ result |= REDRAW; - } - if (reaction & HTOP_REFRESH) { - result |= REFRESH; -@@ -168,13 +168,19 @@ static void MainPanel_drawFunctionBar(Panel* super) { - } - } - -+static void MainPanel_printHeader(Panel* super) { -+ MainPanel* this = (MainPanel*) super; -+ ProcessList_printHeader(this->state->pl, &super->header); -+} -+ - const PanelClass MainPanel_class = { - .super = { - .extends = Class(Panel), - .delete = MainPanel_delete - }, - .eventHandler = MainPanel_eventHandler, -- .drawFunctionBar = MainPanel_drawFunctionBar -+ .drawFunctionBar = MainPanel_drawFunctionBar, -+ .printHeader = MainPanel_printHeader - }; - - MainPanel* MainPanel_new() { -diff --git a/Panel.c b/Panel.c -index b36f1efc..26a0c0ec 100644 ---- a/Panel.c -+++ b/Panel.c -@@ -76,13 +76,6 @@ void Panel_setSelectionColor(Panel* this, ColorElements colorId) { - this->selectionColorId = colorId; - } - --RichString* Panel_getHeader(Panel* this) { -- assert (this != NULL); -- -- this->needsRedraw = true; -- return &(this->header); --} -- - inline void Panel_setHeader(Panel* this, const char* header) { - RichString_writeWide(&(this->header), CRT_colors[PANEL_HEADER_FOCUS], header); - this->needsRedraw = true; -@@ -228,15 +221,20 @@ void Panel_draw(Panel* this, bool force_redraw, bool focus, bool highlightSelect - int x = this->x; - int h = this->h; - -+ const int header_attr = focus -+ ? CRT_colors[PANEL_HEADER_FOCUS] -+ : CRT_colors[PANEL_HEADER_UNFOCUS]; -+ if (force_redraw) { -+ if (Panel_printHeaderFn(this)) -+ Panel_printHeader(this); -+ else -+ RichString_setAttr(&this->header, header_attr); -+ } - int headerLen = RichString_sizeVal(this->header); - if (headerLen > 0) { -- int attr = focus -- ? CRT_colors[PANEL_HEADER_FOCUS] -- : CRT_colors[PANEL_HEADER_UNFOCUS]; -- attrset(attr); -+ attrset(header_attr); - mvhline(y, x, ' ', this->w); - if (scrollH < headerLen) { -- RichString_setAttr(&this->header, attr); - RichString_printoffnVal(this->header, y, x, scrollH, - MINIMUM(headerLen - scrollH, this->w)); - } -diff --git a/Panel.h b/Panel.h -index 959c0b78..63659e3c 100644 ---- a/Panel.h -+++ b/Panel.h -@@ -37,11 +37,13 @@ typedef enum HandlerResult_ { - - typedef HandlerResult (*Panel_EventHandler)(Panel*, int); - typedef void (*Panel_DrawFunctionBar)(Panel*); -+typedef void (*Panel_PrintHeader)(Panel*); - - typedef struct PanelClass_ { - const ObjectClass super; - const Panel_EventHandler eventHandler; - const Panel_DrawFunctionBar drawFunctionBar; -+ const Panel_PrintHeader printHeader; - } PanelClass; - - #define As_Panel(this_) ((const PanelClass*)((this_)->super.klass)) -@@ -49,6 +51,8 @@ typedef struct PanelClass_ { - #define Panel_eventHandler(this_, ev_) (assert(As_Panel(this_)->eventHandler), As_Panel(this_)->eventHandler((Panel*)(this_), ev_)) - #define Panel_drawFunctionBarFn(this_) As_Panel(this_)->drawFunctionBar - #define Panel_drawFunctionBar(this_) (assert(As_Panel(this_)->drawFunctionBar), As_Panel(this_)->drawFunctionBar((Panel*)(this_))) -+#define Panel_printHeaderFn(this_) As_Panel(this_)->printHeader -+#define Panel_printHeader(this_) (assert(As_Panel(this_)->printHeader), As_Panel(this_)->printHeader((Panel*)(this_))) - - struct Panel_ { - Object super; -@@ -84,8 +88,6 @@ void Panel_done(Panel* this); - - void Panel_setSelectionColor(Panel* this, ColorElements colorId); - --RichString* Panel_getHeader(Panel* this); -- - void Panel_setHeader(Panel* this, const char* header); - - void Panel_move(Panel* this, int x, int y); -diff --git a/ScreenManager.c b/ScreenManager.c -index 57cb564d..4c74e477 100644 ---- a/ScreenManager.c -+++ b/ScreenManager.c -@@ -141,7 +141,7 @@ void ScreenManager_run(ScreenManager* this, Panel** lastFocus, int* lastKey) { - - bool timedOut = true; - bool redraw = true; -- bool force_redraw = false; -+ bool force_redraw = true; - bool rescan = false; - int sortTimeout = 0; - int resetSortTimeout = 5; -diff --git a/htop.c b/htop.c -index 4b43ed2a..aa6d9147 100644 ---- a/htop.c -+++ b/htop.c -@@ -313,8 +313,6 @@ int main(int argc, char** argv) { - - MainPanel_updateTreeFunctions(panel, settings->treeView); - -- ProcessList_printHeader(pl, Panel_getHeader((Panel*)panel)); -- - State state = { - .settings = settings, - .ut = ut, |