diff options
author | monsta <[email protected]> | 2017-10-31 18:09:03 +0300 |
---|---|---|
committer | monsta <[email protected]> | 2017-10-31 18:09:03 +0300 |
commit | cd5b3a039d5e7b0d1ca43f7dc703d2d38ab1d477 (patch) | |
tree | 684d456cb0643d2e48530e4d5531728fd736faa9 /src | |
parent | 2db9950b868b6016da007d36f1a7e839aa341173 (diff) | |
download | mate-system-monitor-cd5b3a039d5e7b0d1ca43f7dc703d2d38ab1d477.tar.bz2 mate-system-monitor-cd5b3a039d5e7b0d1ca43f7dc703d2d38ab1d477.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); |