update new installation paths

svn: r6046
This commit is contained in:
Don Allingham
2006-03-03 00:17:58 +00:00
parent 55c41ac2f8
commit 4efbaaa16c
10 changed files with 49 additions and 36 deletions

View File

@@ -105,16 +105,16 @@ class FamilyPreviewFrame(PreviewFrameBase):
image[image_no].set_from_pixbuf(pixbuf)
image_no += 1
else:
self._image_l.set_from_file(os.path.join(const.rootDir,"person.svg"))
self._image_r.set_from_file(os.path.join(const.rootDir,"person.svg"))
self._image_l.set_from_file(os.path.join(const.image_dir,"person.svg"))
self._image_r.set_from_file(os.path.join(const.image_dir,"person.svg"))
except:
log.warn("Failed to generate preview for family", exc_info=True)
self.clear_object()
def clear_object(self):
self._image_l.set_from_file(os.path.join(const.rootDir,"person.svg"))
self._image_r.set_from_file(os.path.join(const.rootDir,"person.svg"))
self._image_l.set_from_file(os.path.join(const.image_dir,"person.svg"))
self._image_r.set_from_file(os.path.join(const.image_dir,"person.svg"))
if gtk.pygtk_version < (2,8,0):

View File

@@ -156,8 +156,8 @@ class ObjectSelectorWindow(gtk.Window,ManagedWindow):
self.__class__.__default_border_width)
person_pixbuf = gtk.gdk.pixbuf_new_from_file(os.path.join(const.rootDir,"person.svg"))
flist_pixbuf = gtk.gdk.pixbuf_new_from_file(os.path.join(const.rootDir,"flist.svg"))
person_pixbuf = gtk.gdk.pixbuf_new_from_file(os.path.join(const.image_dir,"person.svg"))
flist_pixbuf = gtk.gdk.pixbuf_new_from_file(os.path.join(const.image_dir,"flist.svg"))
self._tool_list = gtk.ListStore(gtk.gdk.Pixbuf, str,int)

View File

@@ -62,7 +62,7 @@ class PersonPreviewFrame(PreviewFrameBase):
self._image = gtk.Image()
# test image
self._image.set_from_file(os.path.join(const.rootDir,"person.svg"))
self._image.set_from_file(os.path.join(const.image_dir,"person.svg"))
# Text
label = gtk.Label()
@@ -142,7 +142,7 @@ class PersonPreviewFrame(PreviewFrameBase):
pixbuf = ImgManip.get_thumbnail_image(mobj.get_path())
self._image.set_from_pixbuf(pixbuf)
else:
self._image.set_from_file(os.path.join(const.rootDir,"person.svg"))
self._image.set_from_file(os.path.join(const.image_dir,"person.svg"))
self._label.set_markup(self._get_text_preview(person))
@@ -157,7 +157,7 @@ class PersonPreviewFrame(PreviewFrameBase):
def clear_object(self):
self._image.set_from_file(os.path.join(const.rootDir,"person.svg"))
self._image.set_from_file(os.path.join(const.image_dir,"person.svg"))
self._label.set_markup("")