format fixes
svn: r6108
This commit is contained in:
parent
e5847754d1
commit
b6a023b6a1
@ -1,4 +1,8 @@
|
|||||||
2006-03-08 Don Allingham <don@gramps-project.org>
|
2006-03-08 Don Allingham <don@gramps-project.org>
|
||||||
|
* src/DataViews/_FamilyView.py: fix spacing
|
||||||
|
* src/Editors/_EditPrimary.py: make sure object is valid before
|
||||||
|
compare
|
||||||
|
* src/GenericFilter.py: remove print
|
||||||
* src/Editors/_EditFamily.py: fix family selection
|
* src/Editors/_EditFamily.py: fix family selection
|
||||||
|
|
||||||
2006-03-08 Alex Roitman <shura@gramps-project.org>
|
2006-03-08 Alex Roitman <shura@gramps-project.org>
|
||||||
|
@ -283,7 +283,7 @@ class FamilyView(PageView.PersonNavView):
|
|||||||
self.child = gtk.Table(self.attach.max_y,cols)
|
self.child = gtk.Table(self.attach.max_y,cols)
|
||||||
self.child.set_border_width(12)
|
self.child.set_border_width(12)
|
||||||
self.child.set_col_spacings(12)
|
self.child.set_col_spacings(12)
|
||||||
self.child.set_row_spacings(6)
|
self.child.set_row_spacings(9)
|
||||||
|
|
||||||
for d in self.attach.list:
|
for d in self.attach.list:
|
||||||
x0 = d[1]
|
x0 = d[1]
|
||||||
@ -349,7 +349,8 @@ class FamilyView(PageView.PersonNavView):
|
|||||||
image = gtk.Image()
|
image = gtk.Image()
|
||||||
image.set_from_pixbuf(pixbuf)
|
image.set_from_pixbuf(pixbuf)
|
||||||
image.show()
|
image.show()
|
||||||
self.attach.attach(image,end,end+1,0,4,xoptions=gtk.SHRINK|gtk.FILL)
|
self.attach.attach(image,end,end+1,0,4,
|
||||||
|
xoptions=gtk.SHRINK|gtk.FILL)
|
||||||
|
|
||||||
self.attach.attach(sep,0,self.attach.max_x,4,5)
|
self.attach.attach(sep,0,self.attach.max_x,4,5)
|
||||||
|
|
||||||
@ -386,24 +387,27 @@ class FamilyView(PageView.PersonNavView):
|
|||||||
self.attach.attach(GrampsWidgets.BasicLabel(title),_ALABEL_START,
|
self.attach.attach(GrampsWidgets.BasicLabel(title),_ALABEL_START,
|
||||||
_ALABEL_STOP,self.row,self.row+1,
|
_ALABEL_STOP,self.row,self.row+1,
|
||||||
xoptions=gtk.FILL|gtk.SHRINK)
|
xoptions=gtk.FILL|gtk.SHRINK)
|
||||||
self.attach.attach(GrampsWidgets.BasicLabel(data),_ADATA_START,_ADATA_STOP,
|
self.attach.attach(GrampsWidgets.BasicLabel(data),
|
||||||
|
_ADATA_START,_ADATA_STOP,
|
||||||
self.row,self.row+1)
|
self.row,self.row+1)
|
||||||
self.row += 1
|
self.row += 1
|
||||||
|
|
||||||
def write_label(self,title,family,is_parent):
|
def write_label(self,title,family,is_parent):
|
||||||
msg = "<i><b>%s</b></i>" % cgi.escape(title)
|
msg = "<i><b>%s</b></i>" % cgi.escape(title)
|
||||||
self.attach.attach(GrampsWidgets.MarkupLabel(msg),_LABEL_START,_LABEL_STOP,
|
self.attach.attach(GrampsWidgets.MarkupLabel(msg),
|
||||||
|
_LABEL_START,_LABEL_STOP,
|
||||||
self.row,self.row+1,gtk.SHRINK|gtk.FILL)
|
self.row,self.row+1,gtk.SHRINK|gtk.FILL)
|
||||||
|
|
||||||
if family:
|
if family:
|
||||||
value = family.gramps_id
|
value = family.gramps_id
|
||||||
else:
|
else:
|
||||||
value = ""
|
value = ""
|
||||||
self.attach.attach(GrampsWidgets.BasicLabel(value),_DATA_START,_DATA_STOP,
|
self.attach.attach(GrampsWidgets.BasicLabel(value),
|
||||||
|
_DATA_START,_DATA_STOP,
|
||||||
self.row,self.row+1,gtk.SHRINK|gtk.FILL)
|
self.row,self.row+1,gtk.SHRINK|gtk.FILL)
|
||||||
|
|
||||||
hbox = gtk.HBox()
|
hbox = gtk.HBox()
|
||||||
hbox.set_spacing(6)
|
hbox.set_spacing(12)
|
||||||
if is_parent:
|
if is_parent:
|
||||||
call_fcn = self.add_parent_family
|
call_fcn = self.add_parent_family
|
||||||
else:
|
else:
|
||||||
@ -550,7 +554,8 @@ class FamilyView(PageView.PersonNavView):
|
|||||||
value = True
|
value = True
|
||||||
return value
|
return value
|
||||||
|
|
||||||
def write_event_ref(self, ename, event,start_col=_SDATA_START,stop_col=_SDATA_STOP):
|
def write_event_ref(self, ename, event, start_col=_SDATA_START,
|
||||||
|
stop_col=_SDATA_STOP):
|
||||||
if event:
|
if event:
|
||||||
dobj = event.get_date_object()
|
dobj = event.get_date_object()
|
||||||
phandle = event.get_place_handle()
|
phandle = event.get_place_handle()
|
||||||
|
@ -136,9 +136,12 @@ class EditPrimary(DisplayState.ManagedWindow):
|
|||||||
return False
|
return False
|
||||||
elif self.obj.handle:
|
elif self.obj.handle:
|
||||||
orig = self.get_from_handle(self.obj.handle)
|
orig = self.get_from_handle(self.obj.handle)
|
||||||
|
if orig:
|
||||||
return cmp(orig.serialize(),self.obj.serialize()) != 0
|
return cmp(orig.serialize(),self.obj.serialize()) != 0
|
||||||
else:
|
else:
|
||||||
return True
|
return True
|
||||||
|
else:
|
||||||
|
return True
|
||||||
|
|
||||||
def save(self,*obj):
|
def save(self,*obj):
|
||||||
pass
|
pass
|
||||||
|
@ -2622,7 +2622,7 @@ class FilterWidget:
|
|||||||
for f in default_filters:
|
for f in default_filters:
|
||||||
all = GenericFilter()
|
all = GenericFilter()
|
||||||
rule = f[0](f[1])
|
rule = f[0](f[1])
|
||||||
print rule
|
#print rule
|
||||||
all.set_name( rule.name)
|
all.set_name( rule.name)
|
||||||
all.add_rule( rule)
|
all.add_rule( rule)
|
||||||
filter_list.append(all)
|
filter_list.append(all)
|
||||||
|
Loading…
Reference in New Issue
Block a user