From 2aca380484c3c682c6e8ed2bbb1594c0edb3a7ce Mon Sep 17 00:00:00 2001 From: SNoiraud Date: Sun, 27 Dec 2015 19:45:28 +0100 Subject: [PATCH] Geography : add transient for progress bar in events view + change message. --- gramps/plugins/view/geoevents.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/gramps/plugins/view/geoevents.py b/gramps/plugins/view/geoevents.py index 9b1214e90..440b3690e 100644 --- a/gramps/plugins/view/geoevents.py +++ b/gramps/plugins/view/geoevents.py @@ -291,9 +291,10 @@ class GeoEvents(GeoGraphyView): if self.show_all: self.show_all = False events_handle = dbstate.db.get_event_handles() - progress = ProgressMeter(self.window_name, can_cancel=False) + progress = ProgressMeter(self.window_name, can_cancel=False, + parent=self.uistate.window) length = len(events_handle) - progress.set_pass(_('Selecting all events markers'), length) + progress.set_pass(_('Selecting all events'), length) for event_hdl in events_handle: event = dbstate.db.get_event_from_handle(event_hdl) self._createmap_for_one_event(event) @@ -301,9 +302,10 @@ class GeoEvents(GeoGraphyView): progress.close() elif self.generic_filter: events_list = self.generic_filter.apply(dbstate.db) - progress = ProgressMeter(self.window_name, can_cancel=False) + progress = ProgressMeter(self.window_name, can_cancel=False, + parent=self.uistate.window) length = len(events_list) - progress.set_pass(_('Selecting all events markers'), length) + progress.set_pass(_('Selecting all events'), length) for event_handle in events_list: event = dbstate.db.get_event_from_handle(event_handle) self._createmap_for_one_event(event)