~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 16:30:46 UTC
  • Revision ID: eco.stefi@fastwebnet.it-20120705163046-01tc1im1m9efk0zo
Added install and remove voids

Show diffs side-by-side

added added

removed removed

Lines of Context:
120
120
            pages_view.apps_view.info_message.set_visible (false);
121
121
        }
122
122
        
 
123
        public void on_action_response (ActionType type, string id) {
 
124
                        switch (type) {
 
125
                                case ActionType.INSTALL:
 
126
                                    apps_manager.install_packages ({id, null});
 
127
                                    break;
 
128
                                default:
 
129
                                    apps_manager.remove_packages ({id, null}, true, false);
 
130
                                    break;
 
131
                    }
 
132
                }
 
133
        
123
134
        public void update_back_button (Notebook nb, Widget pg, uint page_n) {
124
135
            GLib.debug ("Page->%s\n", ((PageType) page_n).to_string());
125
136
            switch ((PageType) page_n) {
168
179
            pages_view.switch_page.connect(toolbar.update_label);
169
180
            // When back is clicked
170
181
            toolbar.back.button_press_event.connect(on_back_clicked);
 
182
            // When AppsInfo's action button is pressed
 
183
            pages_view.apps_info.action_response.connect (on_action_response);
171
184
        }
172
185
        
173
186
        public void rework_categories_columns () {