Removal of GnomeQuestionDialogs

svn: r943
This commit is contained in:
Don Allingham
2002-04-25 04:36:16 +00:00
parent bf30f9933b
commit 6d46a22e8b
11 changed files with 124 additions and 93 deletions

View File

@@ -44,6 +44,8 @@ import string
#
#-------------------------------------------------------------------------
from RelLib import *
from QuestionDialog import QuestionDialog
import EditPlace
import Utils
import GrampsCfg
@@ -252,8 +254,10 @@ class PlaceView:
if used == 1:
ans = EditPlace.DeletePlaceQuery(place,self.db,self.update_display)
msg = _("This place is currently being used. Delete anyway?")
gnome.ui.GnomeQuestionDialog(msg,ans.query_response)
QuestionDialog(_('Delete Place'),
_("This place is currently being used. Delete anyway?"),
_('Delete Place'),ans.query_response,
_('Keep Place'))
else:
obj.remove(index)
map = self.db.getPlaceMap()