Re: [newui] [PATCH] Use libxklavier to get a list of available layouts

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



> @@ -64,12 +68,8 @@ class AddLayoutDialog(UIObject):
>  
>      def initialize(self):
>          self._store = self.builder.get_object("newLayoutStore")
> -        #XXX: will use values from the libxklavier
> -        self._addLayout(self._store, "English (US)")
> -        self._addLayout(self._store, "English (US, with some other stuff)")
> -        self._addLayout(self._store, "Czech")
> -        self._addLayout(self._store, "Czech (qwerty)")
> -        self._addLayout(self._store, "values from libxklavier")
> +        for layout in self._xkl_wrapper.get_available_layouts():
> +            self._addLayout(self._store, layout)

This looks good for now, though the store and _addLayout are going to
need to be modified to also store the actual value to pass to loadkeys
(or whatever) as well in the future.

> +"""
> +This module wraps the libxklavier functionality to protect Anaconda
> +from dealing with it's "nice" API that looks like a Lisp-influenced
                       ^

No apostrophe here.

- Chris

_______________________________________________
Anaconda-devel-list mailing list
Anaconda-devel-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/anaconda-devel-list


[Index of Archives]     [Kickstart]     [Fedora Users]     [Fedora Legacy List]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]
  Powered by Linux