[PATCH 5/7] Rework the Welcome spoke to allow users choose from all locales

Radek Vykydal rvykydal at redhat.com
Tue Sep 3 12:35:08 UTC 2013


On 08/30/2013 11:15 AM, Vratislav Podzimek wrote:
> diff --git a/pyanaconda/ui/gui/spokes/welcome.py b/pyanaconda/ui/gui/spokes/welcome.py
> index 5fab330..b3aec82 100644
> --- a/pyanaconda/ui/gui/spokes/welcome.py
> +++ b/pyanaconda/ui/gui/spokes/welcome.py
> @@ -17,6 +17,7 @@
>   # Red Hat, Inc.
>   #
>   # Red Hat Author(s): Chris Lumens <clumens at redhat.com>
> +#                    Vratislav Podzimek <vpodzime at redhat.com>
>   #
>   
>   import sys
> @@ -26,7 +27,7 @@ import langtable
>   from gi.repository import Gtk, Pango
>   from pyanaconda.ui.gui.hubs.summary import SummaryHub
>   from pyanaconda.ui.gui.spokes import StandaloneSpoke
> -from pyanaconda.ui.gui.utils import enlightbox
> +from pyanaconda.ui.gui.utils import enlightbox, set_treeview_selection
>   
>   from pyanaconda import localization
>   from pyanaconda.product import distributionText, isFinal, productName, productVersion
> @@ -35,6 +36,7 @@ from pyanaconda import flags
>   from pyanaconda import geoloc
>   from pyanaconda.i18n import _
>   from pyanaconda.iutil import is_unsupported_hw, strip_accents
> +from pyanaconda.constants import DEFAULT_LANG
>   
>   import logging
>   log = logging.getLogger("anaconda")
> @@ -44,7 +46,8 @@ __all__ = ["WelcomeLanguageSpoke"]
>   class WelcomeLanguageSpoke(StandaloneSpoke):
>       mainWidgetName = "welcomeWindow"
>       uiFile = "spokes/welcome.glade"
> -    builderObjects = ["languageStore", "languageStoreFilter", "welcomeWindow", "betaWarnDialog", "unsupportedHardwareDialog"]
> +    builderObjects = ["languageStore", "languageStoreFilter", "localeStore",
> +                      "welcomeWindow", "betaWarnDialog"]
>   

I guess we don't want to remove unsupportedHardwareDialog from 
builderObjects?



More information about the anaconda-patches mailing list