~mvo/software-center/lp1043752

« back to all changes in this revision

Viewing changes to AppCenter/view/catview.py

  • Committer: Michael Vogt
  • Date: 2009-07-31 13:56:41 UTC
  • Revision ID: michael.vogt@ubuntu.com-20090731135641-s4fihta5teyhywlg
initialĀ UI

Show diffs side-by-side

added added

removed removed

Lines of Context:
12
12
 COL_CAT_QUERY) = range(3)
13
13
 
14
14
class CategoriesModel(gtk.ListStore):
15
 
    def __init__(self, datadir, xapiandb, icons):
 
15
    def __init__(self, desktopdir, xapiandb, icons):
16
16
        gtk.ListStore.__init__(self, str, gtk.gdk.Pixbuf, object)
17
 
        cat = self.parse_applications_menu(datadir)
 
17
        cat = self.parse_applications_menu(desktopdir)
18
18
        for key in sorted(cat.keys()):
19
19
            (iconname, query) = cat[key]
20
20
            icon = icons.load_icon(iconname, 24, 0)
114
114
    icons.append_search_path("/usr/share/app-install/icons/")
115
115
 
116
116
    # now the store
117
 
    view = CategoriesView(datadir, db, icons)
 
117
    view = CategoriesView(desktopdir, db, icons)
118
118
    view.connect("item-activated", category_activated, db)
119
119
 
120
120
    # gui