~libappstore-devs/libappstore/trunk

« back to all changes in this revision

Viewing changes to lib/AppsManager.vala

  • Committer: Mario Guerriero
  • Date: 2013-03-02 15:31:59 UTC
  • Revision ID: mefrio.g@gmail.com-20130302153159-app30e199nx3tkbc
search is case unsensitive

Show diffs side-by-side

added added

removed removed

Lines of Context:
215
215
                QueryResult result = database.get_categories ();
216
216
                
217
217
                for (int record = 1; ! result.finished; record++, result.next ())
218
 
                    search_for_apps (result.fetch_string(0), search_string);
 
218
                    search_for_apps (result.fetch_string(0), search_string.down ());
219
219
                    
220
220
            } catch (GLib.Error e) {
221
221
                message_log (e.message);
229
229
                
230
230
                for (int record = 1; ! result.finished; record++, result.next ()) {
231
231
                    // Look for apps from them ids, names and descriptions
232
 
                    if (search_string in result.fetch_string (0) ||
233
 
                        search_string in result.fetch_string (1) ||
234
 
                        search_string in result.fetch_string (2)) { // If something is found let's send the application
 
232
                    if (search_string in result.fetch_string (0).down () ||
 
233
                        search_string in result.fetch_string (1).down () ||
 
234
                        search_string in result.fetch_string (2).down ()) { // If something is found let's send the application
235
235
                        app = new ModelApp ();
236
236
                        app.id = result.fetch_string (0);
237
237
                        app.name = result.fetch_string (1);