From c8c773a12b9df76f954b8260014409651b0b5d49 Mon Sep 17 00:00:00 2001 From: monsta Date: Tue, 31 Oct 2017 18:09:03 +0300 Subject: process table: make search case-insensitive fixes https://github.com/mate-desktop/mate-system-monitor/issues/102 taken from: https://git.gnome.org/browse/gnome-system-monitor/commit/?id=ee57aed60a0657a2e0c5c13025979cefe0df300c --- src/proctable.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/proctable.cpp b/src/proctable.cpp index 158b8f7..afa14d1 100644 --- a/src/proctable.cpp +++ b/src/proctable.cpp @@ -216,8 +216,8 @@ search_equal_func(GtkTreeModel *model, COL_USER, &user, -1); - found = !((name && strstr(name, key)) - || (user && strstr(user, key))); + found = !((name && strcasestr(name, key)) + || (user && strcasestr(user, key))); g_free(name); g_free(user); -- cgit v1.2.1