~victored/slingshot/app-launcher-dbus

« back to all changes in this revision

Viewing changes to src/Widgets/CategoryView.vala

  • Committer: Andrea Basso
  • Date: 2012-06-20 22:40:16 UTC
  • mfrom: (211.1.11 slingshot)
  • Revision ID: voluntatefaber@gmail.com-20120620224016-v12grb9ycm6u0cbm
Merged with trunk. Now Slingshot can do magic with keyboard only

Show diffs side-by-side

added added

removed removed

Lines of Context:
71
71
            // Fill the sidebar
72
72
            int n = 0;
73
73
            
74
 
            var categories = new GLib.List<string> ();
75
 
            foreach (string cat_name in view.apps.keys)
76
 
                categories.append (cat_name);
77
 
                
78
 
            categories.sort ( (a, b) => {
79
 
                if (a > b)
80
 
                    return 1;
81
 
                else
82
 
                    return -1;
83
 
            });
84
 
            foreach (string cat_name in categories) {
 
74
            foreach (string cat_name in view.apps.keys) {
85
75
                category_ids.set (n, cat_name);
86
76
            
87
77
                switch (cat_name) {
97
87
                    case "Development":
98
88
                        category_switcher.add_category (_("Development"));
99
89
                    break;
 
90
                    case "Education":
 
91
                        category_switcher.add_category (_("Education"));
 
92
                    break;
100
93
                    case "Other":
101
94
                        category_switcher.add_category (_("Other"));
102
95
                    break;