Gtk UI: Progress dialog should also be modal

This commit is contained in:
Thomas Perl 2012-01-24 20:21:21 +01:00
parent f5ab4117fa
commit 878f67aaa6

View file

@ -55,6 +55,7 @@ class ProgressIndicator(object):
def _create_progress(self):
self.dialog = gtk.MessageDialog(self.parent, \
0, 0, gtk.BUTTONS_CANCEL, self.subtitle or self.title)
self.dialog.set_modal(True)
self.dialog.connect('delete-event', self._on_delete_event)
self.dialog.set_title(self.title)
self.dialog.set_deletable(self.cancellable)