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

« back to all changes in this revision

Viewing changes to src/Frontend.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:
22
22
 
23
23
namespace Lsc {
24
24
    // Elements which should be accessible to every void or class
 
25
    public LscCategory last_category;
 
26
    public LscApp last_app;
 
27
    
25
28
    public enum PageType {
26
29
        HOMEPAGE,
27
30
        APPSVIEW,
103
106
                }
104
107
        
105
108
        public void load_details (LscApp app) {
 
109
                        last_app = app;
106
110
                        apps_manager.get_details (app);
107
111
                        pages_view.set_page(PageType.APPSINFO);
108
112
                }
109
113
        
110
114
        public void load_packages (LscCategory category) {
 
115
                        last_category = category;
111
116
            pages_view.set_page(PageType.APPSVIEW);
112
117
            pages_view.apps_view.apps_tree.clear();
113
118
            apps_manager.get_pkgs(category.id);