[anaconda][master][PATCH] Use the enlightbox context manager for the add network device dialog
Vratislav Podzimek
vpodzime at redhat.com
Tue Jul 8 12:48:30 UTC 2014
On Tue, 2014-07-08 at 14:14 +0200, Martin Kolman wrote:
> The old way no longer works and causes an exception to be raised.
>
> Signed-off-by: Martin Kolman <mkolman at redhat.com>
> ---
> pyanaconda/ui/gui/spokes/network.py | 5 ++---
> 1 file changed, 2 insertions(+), 3 deletions(-)
>
> diff --git a/pyanaconda/ui/gui/spokes/network.py b/pyanaconda/ui/gui/spokes/network.py
> index adb81e1..49cd897 100644
> --- a/pyanaconda/ui/gui/spokes/network.py
> +++ b/pyanaconda/ui/gui/spokes/network.py
> @@ -596,9 +596,8 @@ class NetworkControlBox(GObject.GObject):
>
> def on_add_device_clicked(self, *args):
> dialog = self.builder.get_object("add_device_dialog")
> - if self.spoke:
> - dialog.set_transient_for(self.spoke.window)
> - rc = dialog.run()
> + with self.spoke.main_window.enlightbox(dialog):
> + rc = dialog.run()
> dialog.hide()
> if rc == 1:
> ai = self.builder.get_object("combobox_add_device").get_active_iter()
ACK.
--
Vratislav Podzimek
Anaconda Rider | Red Hat, Inc. | Brno - Czech Republic
More information about the anaconda-patches
mailing list