~lubuntu-software-center-team/lubuntu-software-center/vala-port

« back to all changes in this revision

Viewing changes to src/Widgets/Toolbar.vala

  • Committer: Stephen Smally
  • Date: 2012-07-05 10:59:44 UTC
  • Revision ID: eco.stefi@fastwebnet.it-20120705105944-354p3ovbsqpswk9y
Fixed some UI issues (updating location label), speeded up database building

Show diffs side-by-side

added added

removed removed

Lines of Context:
27
27
        public SearchBar searchbar;
28
28
        
29
29
        public void update_label (Notebook nb, Widget pg, uint page_n) {
30
 
            label.label = ((PageType) page_n).to_string();
 
30
                        PageType page_t = (PageType) page_n;
 
31
            switch (page_t) {
 
32
                                case PageType.HOMEPAGE:
 
33
                                    label.label = page_t.to_string();
 
34
                                    break;
 
35
                                case PageType.APPSVIEW:
 
36
                                    label.label = last_category.name;
 
37
                                    break;
 
38
                                case PageType.APPSINFO:
 
39
                                    label.label = last_app.name;
 
40
                                    break;
 
41
                        }
31
42
        }
32
43
        
33
44
        private void insert_with_tool (Widget widget, int pos) {