GNOME Bugzilla – Bug 694633
Add a keyboard drawing widget
Last modified: 2013-07-22 14:07:02 UTC
Copied from libgnomekdb, which is now dead, and adapted for gnome-desktop (mainly to remove the dependency on libxklavier and to use the correct namespace)
Created attachment 237318 [details] [review] Add a keyboard drawing widget
Review of attachment 237318 [details] [review]: Do you think we'll need this anywhere besides g-c-c? I'd like to avoid growing the gnome-desktop API beyond the strictly necessary so maybe we should just put it in g-c-c. Speaking of API, there are several public methods here which we don't have any use for so they could also be removed.
The main reason for adding it to gnome-desktop is that the rest of the API dealing with Xkb live there, so it seemed consistent to have them in one place. The other reason is that gnome-initial-setup will probably offer the same functionality in the layout chooser, and therefore use the widget too. I mostly kept the same public API as libgnomekbd, only removing what was confusing or unbindable, but I'm ok with reducing it to the bare minimum required by gnome-control-center/gnome-initial-setup.
Created attachment 237462 [details] [review] Add a keyboard drawing widget Copied from libgnomekdb, which is now dead, and adapted for gnome-desktop (mainly to remove the dependency on libxklavier and to use the correct namespace) Ok, this is a stripped down version. I removed the version loading an explicit Xkb keyboard, and I removed modifier tracking (as I didn't make sense to me)
Attachment 237462 [details] pushed as c8d0413 - Add a keyboard drawing widget
Sorry, pushed by mistake.
This should be a separate binary inside the gnome-control-center tree.