* src/GrampsWidgets.py: provide default instructions for place

svn: r7572
This commit is contained in:
Don Allingham 2006-11-07 02:15:37 +00:00
parent 55daa2ec2d
commit 7a31b30b8d
2 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,5 @@
2006-11-06 Don Allingham <don@gramps-project.org> 2006-11-06 Don Allingham <don@gramps-project.org>
* src/GrampsWidgets.py: provide default instructions for place
* src/DataViews/_MediaView.py: cancel drag-n-drop if list is empty * src/DataViews/_MediaView.py: cancel drag-n-drop if list is empty
* src/PageView.py: cancel drag-n-drop if list is empty * src/PageView.py: cancel drag-n-drop if list is empty
* src/ViewManager.py (ViewManager.about): destroy About dialog * src/ViewManager.py (ViewManager.about): destroy About dialog

View File

@ -555,6 +555,10 @@ class PlaceEntry:
self.add_del.connect('clicked', self.add_del_clicked) self.add_del.connect('clicked', self.add_del_clicked)
self.share.connect('clicked', self.share_clicked) self.share.connect('clicked', self.share_clicked)
if not self.db.readonly and not name:
obj.set_text("<i>%s</i>" % _('Drag and drop or use buttons to add or select'))
obj.set_use_markup(True)
else:
obj.set_text(name) obj.set_text(name)
def after_edit(self, place): def after_edit(self, place):