Set parent of ProgressMeter

This commit is contained in:
Josip 2015-06-20 03:57:54 +02:00
parent 97ced02208
commit d0c8fd056b

View File

@ -107,7 +107,8 @@ class NotRelated(tool.ActivePersonTool, ManagedWindow) :
self.tagapply.connect('clicked', self.applyTagClicked) self.tagapply.connect('clicked', self.applyTagClicked)
# start the progress indicator # start the progress indicator
self.progress = ProgressMeter(self.title,_('Starting')) self.progress = ProgressMeter(self.title,_('Starting'),
parent=self.window)
# setup the columns # setup the columns
self.model = Gtk.TreeStore( self.model = Gtk.TreeStore(
@ -251,7 +252,8 @@ class NotRelated(tool.ActivePersonTool, ManagedWindow) :
# if more than 1 person is selected, use a progress indicator # if more than 1 person is selected, use a progress indicator
if rows > 1: if rows > 1:
progress = ProgressMeter(self.title,_('Starting')) progress = ProgressMeter(self.title,_('Starting'),
parent=self.window)
progress.set_pass( progress.set_pass(
# translators: leave all/any {...} untranslated # translators: leave all/any {...} untranslated
#TRANS: no singular form needed, as rows is always > 1 #TRANS: no singular form needed, as rows is always > 1