~evfool/software-center/bug532072

« back to all changes in this revision

Viewing changes to softwarecenter/view/appdetailsview.py

  • Committer: Michael Vogt
  • Date: 2009-09-25 15:30:34 UTC
  • Revision ID: michael.vogt@ubuntu.com-20090925153034-vf6oqy9j66fc6jcz
renamed to "Ubuntu Software Center" and software-center (LP: #436648)

Show diffs side-by-side

added added

removed removed

Lines of Context:
40
40
 
41
41
from gettext import gettext as _
42
42
 
43
 
if os.path.exists("./softwarestore/enums.py"):
 
43
if os.path.exists("./softwarecenter/enums.py"):
44
44
    sys.path.insert(0, ".")
45
 
from softwarestore.enums import *
46
 
from softwarestore.version import *
47
 
from softwarestore.db.database import StoreDatabase
 
45
from softwarecenter.enums import *
 
46
from softwarecenter.version import *
 
47
from softwarecenter.db.database import StoreDatabase
48
48
 
49
49
from widgets.wkwidget import WebkitWidget
50
50
from widgets.imagedialog import ShowImageDialog
67
67
    SCREENSHOT_LARGE_URL = "http://screenshots.debian.net/screenshot/%s"
68
68
 
69
69
    # FIXME: use relative path here
70
 
    INSTALLED_ICON = "/usr/share/icons/hicolor/24x24/emblems/software-store-installed.png"
71
 
    IMAGE_LOADING = "/usr/share/icons/hicolor/32x32/animations/softwarestore-loading.gif"
72
 
    IMAGE_LOADING_INSTALLED = "/usr/share/icons/hicolor/32x32/animations/softwarestore-loading-installed.gif"
 
70
    INSTALLED_ICON = "/usr/share/icons/hicolor/24x24/emblems/software-center-installed.png"
 
71
    IMAGE_LOADING = "/usr/share/icons/hicolor/32x32/animations/softwarecenter-loading.gif"
 
72
    IMAGE_LOADING_INSTALLED = "/usr/share/icons/hicolor/32x32/animations/softwarecenter-loading-installed.gif"
73
73
    
74
74
    __gsignals__ = {'selected':(gobject.SIGNAL_RUN_FIRST,
75
75
                                gobject.TYPE_NONE,
314
314
            try:
315
315
                self.aptd_client.add_repository(
316
316
                    entry.type, entry.uri, entry.dist, entry.comps, 
317
 
                    "Added by software-store", sourcepart)
 
317
                    "Added by software-center", sourcepart)
318
318
            except dbus.exceptions.DBusException, e:
319
319
                if e._dbus_error_name == "org.freedesktop.PolicyKit.Error.NotAuthorized":
320
320
                    return
532
532
    elif os.path.exists("./data"):
533
533
        datadir = "./data"
534
534
    else:
535
 
        datadir = "/usr/share/software-store"
 
535
        datadir = "/usr/share/software-center"
536
536
 
537
 
    xapian_base_path = "/var/cache/software-store"
 
537
    xapian_base_path = "/var/cache/software-center"
538
538
    pathname = os.path.join(xapian_base_path, "xapian")
539
539
    db = StoreDatabase(pathname)
540
540
 
541
541
    icons = gtk.icon_theme_get_default()
542
542
    icons.append_search_path("/usr/share/app-install/icons/")
543
543
    
544
 
    from softwarestore.apt.aptcache import AptCache
 
544
    from softwarecenter.apt.aptcache import AptCache
545
545
    cache = AptCache()
546
546
 
547
547
    # gui