~mvo/software-center/plugin-support

« back to all changes in this revision

Viewing changes to softwarecenter/view/catview_gtk.py

  • Committer: Michael Vogt
  • Date: 2010-06-21 14:42:45 UTC
  • mto: This revision was merged to the branch mainline in revision 856.
  • Revision ID: michael.vogt@ubuntu.com-20100621144245-gq9o2m60r8rpc95a
initial version of possible new-apps feature

Show diffs side-by-side

added added

removed removed

Lines of Context:
168
168
 
169
169
        # create new-apps widget
170
170
        self.new = mkit.LayoutView()
171
 
        # set the departments section to use the label markup we have just defined
172
171
        self.new.set_label(H2 % _('New Applications'))
173
 
 
 
172
        new_cat = get_category_by_name(self.categories,
 
173
                                       'New Applications')
 
174
        query = self.db.get_query_list_from_search_entry('', new_cat.query)
 
175
        new_apps = AppStore(self.cache,
 
176
                            self.db,
 
177
                            self.icons,
 
178
                            query,
 
179
                            self.apps_limit,
 
180
                            True,
 
181
                            self.apps_filter)
 
182
        carousel2 = FeaturedView(new_apps)
 
183
        carousel2.more_btn.connect('clicked',
 
184
                                 self._on_category_clicked,
 
185
                                 new_cat)
 
186
 
 
187
        # put in the box
174
188
        self.hbox_inner = gtk.HBox(spacing=mkit.HSPACING_SMALL)
175
189
        self.hbox_inner.set_homogeneous(True)
176
190
        self.hbox_inner.pack_start(self.carousel, False)
177
191
        self.hbox_inner.pack_start(self.new, False)
178
 
 
179
 
 
 
192
        self.hbox_inner.pack_start(carousel2, False)
180
193
        self.vbox.pack_start(self.hbox_inner, False)
181
194
        return
182
195