After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 164090 - Keyboard Layout Options UI sucks
Keyboard Layout Options UI sucks
Status: RESOLVED FIXED
Product: gnome-control-center
Classification: Core
Component: Keyboard
git master
Other Linux
: Normal normal
: ---
Assigned To: Control-Center Maintainers
Control-Center Maintainers
Depends on:
Blocks:
 
 
Reported: 2005-01-14 17:30 UTC by John Spray
Modified: 2005-01-19 23:18 UTC
See Also:
GNOME target: ---
GNOME version: 2.9/2.10


Attachments
New UI for keyboard layouts (31.72 KB, patch)
2005-01-14 17:37 UTC, John Spray
none Details | Review
Screenshot of new keyboard layout UI (27.20 KB, image/png)
2005-01-14 17:38 UTC, John Spray
  Details
Updated patch (29.25 KB, patch)
2005-01-18 02:40 UTC, John Spray
none Details | Review
Updated version (31.19 KB, patch)
2005-01-19 01:20 UTC, Sergey V. Udaltsov
committed Details | Review
The new screenshot - with selective highlighting (75.65 KB, image/png)
2005-01-19 01:22 UTC, Sergey V. Udaltsov
  Details
Version with "Layout Options" page only visible if there actually are options to show (31.60 KB, patch)
2005-01-19 16:05 UTC, John Spray
none Details | Review

Description John Spray 2005-01-14 17:30:20 UTC
-Both treeviews are too narrow to display the full text of options within themselves
-It is not clear which available options are mutually exclusive: user must
hightlight available options and see if "Add" is available in order to find out
-When an option has been moved to "Selected options" it is displayed without its
group header, and some of the names are meaningless outside of context.
Comment 1 John Spray 2005-01-14 17:37:40 UTC
Created attachment 36021 [details] [review]
New UI for keyboard layouts

Of course I wouldn't have filed such an inflammatory subject line if I didn't
have a better idea :-)

The attached patch creates an expander for each group of options, and fills it
with check buttons (multiselect groups) or radio buttons (non-multiselect
groups).

As far as I can tell it works, but I'm sure someone will figure out how to
break it.

Note that the patch also includes some non-controversial glade changes from Bug
159685, and if accepted should close that bug.

As an added bonus, my code is actually shorter than the old version, even
including my inline comments.
Comment 2 John Spray 2005-01-14 17:38:43 UTC
Created attachment 36022 [details]
Screenshot of new keyboard layout UI
Comment 3 Sergey V. Udaltsov 2005-01-16 22:58:53 UTC
Well, the .c file are ok. But glade file was changed in CVS - so the patch does
not apply :(
Comment 4 John Spray 2005-01-16 23:26:26 UTC
AnonCVS is sufficiently out of date that I can't make a fresh patch right now. 
I guess all that changed was that you applied Bug 159685?  Maybe you could just
unapply that and apply this one (which conflicts because it includes the changes
from there).
Comment 5 John Spray 2005-01-18 02:40:46 UTC
Created attachment 36148 [details] [review]
Updated patch

This should work against current CVS.
Comment 6 Sergey V. Udaltsov 2005-01-19 01:20:10 UTC
Created attachment 36225 [details] [review]
Updated version

The highlighting now depends on the chosen options. Also, C++ comments // are
replaced with the C ones /**/
Comment 7 Sergey V. Udaltsov 2005-01-19 01:22:39 UTC
Created attachment 36226 [details]
The new screenshot - with selective highlighting

Updated screenshot. Really looks good.
Comment 8 Sergey V. Udaltsov 2005-01-19 01:25:01 UTC
So, summarrizing. I like the new UI. Today/tomorrow I'll make this new
screenshot visible (in planet.gnome.org and in the usability list) - and after
GTP approves the string breakage _("Default") - I will commit.
Comment 9 Sebastien Bacher 2005-01-19 11:08:37 UTC
the string freeze is on the 7th of february no need to ask to change something ...
Comment 10 John Spray 2005-01-19 16:05:15 UTC
Created attachment 36249 [details] [review]
Version with "Layout Options" page only visible if there actually are options to show

This is a version of Sergey's latest that has the "Layout Options" tab
invisible in the glade file, and only made visible in the code for adding a
group of options: this way the tab should only be shown if there actually are
options: otherwise we would just have a blank page.
Comment 11 Sergey V. Udaltsov 2005-01-19 16:14:49 UTC
John, how could it happen that there are no options to show?? Never heard of
such xorg|xfree|base.xml - without any options...
Comment 12 John Spray 2005-01-19 16:20:51 UTC
I noticed this on a remote connection to a FC2 box from the Exceed proprietary X
server for windows.
Comment 13 Sergey V. Udaltsov 2005-01-19 16:29:11 UTC
Ghm... And which XML file is used in this case? I though it was same xorg.xml -
which contains the options... Do you have XKB enabled at all? Actually, I'd be
interested in more details regarding your configuration...
Comment 14 John Spray 2005-01-19 16:41:02 UTC
I'm probably not going to be back at that Exceed machine for a while, a few days
at least.  However, I can also get no options on my (Ubuntu Warty) machine just
by using gdmXnestchooser and logging in to the local machine.  Same everything,
naturally.

If you want to leave instructions for analysing the FC2/Exceed setup, I'll do it
when I'm next there.
Comment 15 Sergey V. Udaltsov 2005-01-19 23:18:56 UTC
John, you patch things a bit too fast. Let's make it step-by step if you don't
mind:)

So, I committed my version of the patch (with the sorting fix). Now, if you
please could take the version from CVS and attach the patch for optional layout
tab - I'd appreciate it.

Regarding gdmXnestchooser - AFAIK it does not have XKB, so the xmodmap part of
libxklavier should give you a couple of options (if you have the latest
gnome-applets). I will look into it...