diff options
author | monsta <[email protected]> | 2017-10-31 18:09:03 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2018-03-20 11:01:58 +0300 |
commit | c8c773a12b9df76f954b8260014409651b0b5d49 (patch) | |
tree | 466b2b29f60ca975990d9e876f1fe4528a1c470c /src | |
parent | 8c01cb6c420e0cd1d6a4332bc41f3cbbd6ed2708 (diff) | |
download | mate-system-monitor-c8c773a12b9df76f954b8260014409651b0b5d49.tar.bz2 mate-system-monitor-c8c773a12b9df76f954b8260014409651b0b5d49.tar.xz |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/proctable.cpp | 4 |
1 files 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); |