~ubuntu-branches/ubuntu/karmic/software-store/karmic

« back to all changes in this revision

Viewing changes to softwarestore/view/viewswitcher.py

  • Committer: Bazaar Package Importer
  • Author(s): Michael Vogt
  • Date: 2009-09-04 17:33:33 UTC
  • Revision ID: james.westby@ubuntu.com-20090904173333-7gosux5f7swimyr5
Tags: 0.2.1
* data/ui/SoftwareStore.ui:
  - add menu shortcuts (thanks to seb128)
* show loading animation when fetching screenshots 
  (thanks to rugby471)
* softwarestore/app.py:
  - fix crash when searching in sub-categories
* softwarestore/view/appdetailsview.py:
  - add workaround for missing xpm rendering with webkit
  - scale icons to default icon size
  - fix icon loading from the custom icon path
* softwarestore/app.py:
  - when started multiple times, focus the already running 
    one

Show diffs side-by-side

added added

removed removed

Lines of Context:
86
86
 
87
87
    ICON_SIZE = 32
88
88
 
 
89
    ANIMATION_PATH = "/usr/share/icons/hicolor/32x32/status/software-store-progress-*.png"
 
90
 
89
91
    def __init__(self, datadir, icons):
90
92
        gtk.ListStore.__init__(self, AnimatedImage, str, int)
91
93
        self.icons = icons
127
129
                    row[self.COL_NAME] = _("In Progress (%i)") % pending
128
130
                    break
129
131
            else:
130
 
                icon = AnimatedImage(self.datadir+"/status/software-store-progress-*.png")
 
132
                icon = AnimatedImage(self.ANIMATION_PATH)
131
133
                icon.start()
132
134
                self.append([icon, _("Pending (%i)") % pending, 
133
135
                             self.ACTION_ITEM_PENDING])