import fixes

svn: r5851
This commit is contained in:
Don Allingham 2006-01-29 04:50:11 +00:00
parent dfcdcab183
commit cf6267c58d

View File

@ -26,6 +26,14 @@
import gtk import gtk
import gobject import gobject
#-------------------------------------------------------------------------
#
# python
#
#-------------------------------------------------------------------------
from gettext import gettext as _
#------------------------------------------------------------------------- #-------------------------------------------------------------------------
# #
# GRAMPS libraries # GRAMPS libraries
@ -35,8 +43,8 @@ import DateHandler
import NameDisplay import NameDisplay
import RelLib import RelLib
import Utils import Utils
import ToolTips import GrampsMime
import GrampsLocale import const
from GrampsWidgets import SimpleButton from GrampsWidgets import SimpleButton
@ -307,7 +315,6 @@ class EmbeddedList(ButtonTab):
(model,node) = self.selection.get_selected() (model,node) = self.selection.get_selected()
if node: if node:
return model.get_value(node,self._HANDLE_COL) return model.get_value(node,self._HANDLE_COL)
else:
return None return None
def _selection_changed(self,obj=None): def _selection_changed(self,obj=None):
@ -775,7 +782,6 @@ class GalleryTab(ButtonTab):
node = self.iconlist.get_selected_items() node = self.iconlist.get_selected_items()
if len(node) > 0: if len(node) > 0:
return self.media_list[node[0][0]] return self.media_list[node[0][0]]
else:
return None return None
def add_button_clicked(self,obj): def add_button_clicked(self,obj):
@ -886,7 +892,6 @@ class ChildModel(gtk.ListStore):
return Utils.child_relations[rel] return Utils.child_relations[rel]
def column_father_rel(self,data): def column_father_rel(self,data):
chandle = data.handle
fhandle = self.family.handle fhandle = self.family.handle
for (handle, mrel, frel) in data.get_parent_family_handle_list(): for (handle, mrel, frel) in data.get_parent_family_handle_list():
if handle == fhandle: if handle == fhandle:
@ -894,7 +899,6 @@ class ChildModel(gtk.ListStore):
return "" return ""
def column_mother_rel(self,data): def column_mother_rel(self,data):
chandle = data.handle
fhandle = self.family.handle fhandle = self.family.handle
for (handle, mrel, frel) in data.get_parent_family_handle_list(): for (handle, mrel, frel) in data.get_parent_family_handle_list():
if handle == fhandle: if handle == fhandle:
@ -1036,8 +1040,8 @@ class NameModel(gtk.ListStore):
self.db = db self.db = db
for obj in obj_list: for obj in obj_list:
self.append(row=[ self.append(row=[
NameDisplay.display_name(obj), NameDisplay.displayer.display_name(obj),
type_name(obj), self.type_name(obj),
]) ])
def type_name(self, obj): def type_name(self, obj):