[PATCH 4/5] Always center the AddLayout dialog

Chris Lumens clumens at redhat.com
Mon Nov 11 22:01:10 UTC 2013


> diff --git a/pyanaconda/ui/gui/spokes/keyboard.py b/pyanaconda/ui/gui/spokes/keyboard.py
> index 42a7fee..e36b7e0 100644
> --- a/pyanaconda/ui/gui/spokes/keyboard.py
> +++ b/pyanaconda/ui/gui/spokes/keyboard.py
> @@ -98,6 +98,7 @@ class AddLayoutDialog(GUIObject):
>      def refresh(self):
>          selected = self._newLayoutSelection.count_selected_rows()
>          self._confirmAddButton.set_sensitive(selected)
> +        self.window.set_position(Gtk.WindowPosition.CENTER_ALWAYS)
>          self._entry.grab_focus()
>  
>      def initialize(self):

We might just want to do this for all dialogs.

- Chris


More information about the anaconda-patches mailing list