~ubuntu-branches/ubuntu/raring/kourou/raring

« back to all changes in this revision

Viewing changes to kourou.py

  • Committer: Bazaar Package Importer
  • Author(s): Steve Kowalik
  • Date: 2008-09-24 18:11:11 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080924181111-cl816pd2hajufle7
Tags: 0.2-0ubuntu1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
44
44
        scrolled_win.show()
45
45
        self.add(scrolled_win)
46
46
        self.parse_menus(menu)
 
47
        self.set_categories()
47
48
        self.populate_model(self.client)
48
 
        self.set_categories()
49
49
        self.client.notify_add("/apps/marquee-plugins/active", \
50
50
            self.populate_model)
51
51
 
55
55
                self.parse_menus(submenu)
56
56
        elif isinstance(entry, xdg.Menu.MenuEntry):
57
57
            dentry = entry.DesktopEntry
 
58
            if dentry.getType() != "Application":
 
59
                return
58
60
            icon = xdg.IconTheme.getIconPath(dentry.getIcon(), \
59
61
                gtk.ICON_SIZE_BUTTON, 'Human', ["png", "xpm"])
60
62
            pixbuf = None
69
71
                    self.categories[name] = [mapentry]
70
72
 
71
73
    def set_categories(self):
 
74
        self.client.set_string("/apps/marquee-plugins/active", "All")
72
75
        self.client.set_list("/apps/marquee-plugins/categories", \
73
76
            gconf.VALUE_STRING, self.categories.keys())
74
77