* src/Editors/_EditPlace.py: consistent menu and title names

* src/Editors/_EditSource.py: consistent menu and title names
	* src/Editors/_EditPerson.py: consistent menu and title names
	* src/Editors/_EditMedia.py: consistent menu and title names
	* src/Editors/_EditRepository.py: consistent menu and title names
	* src/Editors/_EditFamily.py: consistent menu and title names
	* src/Editors/_EditEvent.py: consistent menu and title names


svn: r7709
This commit is contained in:
Don Allingham
2006-11-26 21:18:30 +00:00
parent 107a34c4e1
commit 6c810c6ef4
8 changed files with 86 additions and 72 deletions

View File

@@ -66,19 +66,20 @@ class EditSource(EditPrimary):
def empty_object(self):
return RelLib.Source()
def get_menu_title(self):
title = self.obj.get_title()
if title:
title = _('Source') + ": " + title
else:
title = _('New Source')
return title
def _local_init(self):
assert(self.obj)
self.glade = gtk.glade.XML(const.gladeFile,"source_editor","gramps")
title = self.obj.get_title()
if title:
title = _('Source') + ": " + title
else:
title = _('Source')
self.set_window(self.glade.get_widget("source_editor"),
None, title)
self.set_window(self.glade.get_widget("source_editor"), None, self.get_menu_title())
width = Config.get(Config.SOURCE_WIDTH)
height = Config.get(Config.SOURCE_HEIGHT)
self.window.resize(width, height)
@@ -156,11 +157,7 @@ class EditSource(EditPrimary):
self.glade.get_widget('vbox').pack_start(notebook,True)
def build_menu_names(self,source):
if source:
label = "Edit Source"
else:
label = "New Source"
return (label, _('Source Editor'))
return (_('Edit Source'), self.get_menu_title())
def save(self,*obj):
if self.object_is_empty():