[gnome-system-monitor] Instant search function changed to be case insensitive.



commit ee57aed60a0657a2e0c5c13025979cefe0df300c
Author: Robert Roth <robert roth off gmail com>
Date:   Tue Jan 17 02:36:32 2012 +0200

    Instant search function changed to be case insensitive.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=668052

 src/proctable.cpp |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/src/proctable.cpp b/src/proctable.cpp
index 8897c24..d53b562 100644
--- a/src/proctable.cpp
+++ b/src/proctable.cpp
@@ -212,8 +212,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);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]