From 7a31b30b8d8878cccf2782a148cb2fd782749c93 Mon Sep 17 00:00:00 2001 From: Don Allingham Date: Tue, 7 Nov 2006 02:15:37 +0000 Subject: [PATCH] * src/GrampsWidgets.py: provide default instructions for place svn: r7572 --- gramps2/ChangeLog | 1 + gramps2/src/GrampsWidgets.py | 8 ++++++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/gramps2/ChangeLog b/gramps2/ChangeLog index a7a6b3b14..391960ae6 100644 --- a/gramps2/ChangeLog +++ b/gramps2/ChangeLog @@ -1,4 +1,5 @@ 2006-11-06 Don Allingham + * src/GrampsWidgets.py: provide default instructions for place * src/DataViews/_MediaView.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 diff --git a/gramps2/src/GrampsWidgets.py b/gramps2/src/GrampsWidgets.py index 01679d583..35b5aa069 100644 --- a/gramps2/src/GrampsWidgets.py +++ b/gramps2/src/GrampsWidgets.py @@ -554,8 +554,12 @@ class PlaceEntry: self.add_del.connect('clicked', self.add_del_clicked) self.share.connect('clicked', self.share_clicked) - - obj.set_text(name) + + if not self.db.readonly and not name: + obj.set_text("%s" % _('Drag and drop or use buttons to add or select')) + obj.set_use_markup(True) + else: + obj.set_text(name) def after_edit(self, place): name = "%s [%s]" % (place.get_title(),place.gramps_id)