Skip to content

Allow to display variant in applet

Submitted by Alexis BRENON

Assigned to Igor Slepchin

Link to original bug (#15269)

Description

Hi,

I read bugs about applet not displaying variant label (https://bugzilla.xfce.org/show_bug.cgi?id=2363, https://bugzilla.xfce.org/show_bug.cgi?id=3409) considered as fixed because applet displays some dots to identify variants. However, this feature does not meet my requirements and I propose to provide an option, in the applet setting, to display the variant as you can display country or language for the moment.

A working commit can be found on my fork: https://github.com/AlexisBRENON/xfce4-xkb-plugin/tree/variant

This commit is a quick patch which I think can be improved. I am looking for advices for which tracks to follow; here are some:

  • Variant images have to be drawn, which can be a little bit long and boring. First step could be to generate them (adding text above country flag image). Second step could be to check if a specific image has been defined, else generate it.
  • Currently, only 3 first letters of the variant is displayed. First step could be to display a more complete information (country-lang-variant). Second step could be to let the user provide a format string for system or text display types making the applet more customizable.

I will be very happy to implement any of these changes!

Kind regards, Alexis BRENON.

Version: git