I begin working some A11y related little modifications for GNOME Control Center application, please review my first patch before I attaching a future bugreport the fix

2011-10-21 Thread Hammer Attila

Hy Everybody,

In GNOME Control Center application lot of preference tool dialogs 
unfortunately GNOME Developers not associated the labels with real 
widgets with mnemonic_widget property, or not associated the 
accessibility property for widgets need labels.
The typical easy resolvable dialog part is the Power management 
preference tool dialog.
I maked a little patch for the Ubuntu Oneiric compatible package 
version, but before I opening a bugreport and attaching a final patch 
for Launchpad or upstream level, an A11y developer please review I doed 
changes and write hints for proper acceptable fix related with future. 
This type fixes will be possible awailable for Oneiric-updates later, or 
only possible land for Precise?


I attaching the patch, and the already modified UI file. If anybody 
want, easy testing the difference with Orca Screen Reader with following 
way:
1. Launch GNOME Control Center, and activate the power management 
related preference dialog.
2. Look what happening if you tabbing the dialog widgets. You not will 
be hear some label texts.
3. Close Power management preference tool, and if you want, put the 
modifyed power.ui file with the /usr/share/gnome-control-center/ui 
directory in your Oneiric system. Of course, before you doing this, do a 
backup copy the original file.
4. Repeat the prewious test. Hopefuly, you will be hear all missing 
important labels.


Now I have possibility to test Power management preference tool only 
when the  AC adapter are connected my laptop, if have more missing 
labels this preference tool, please write the label text me or this list.
I not used now the mnemonic_widget property, because not remember when I 
working the fix possible associate more widgets this property with one 
equals label (I think the object name is label7).


Very interesting, when I looked upstream version to make perhaps 
upstream level compatible patch with future, the lid close related label 
is missing the upstream UI file, or I not founded only this label. :-):-)
I welcome working future this type fixes if I have enough free time for 
Precise development, but need determining what the best place this 
fixes: Ubuntu level or upstream level?
I ask this, because for example GNOME Control Center related perhaps 
some UI files is different with two level if I see right.


Attila
?xml version=1.0 encoding=UTF-8?
interface
  requires lib=gtk+ version=2.20/
  object class=GtkListStore id=liststore_critical
columns
  !-- column-name name --
  column type=gchararray/
  !-- column-name value --
  column type=gint/
  !-- column-name sensitive --
  column type=gboolean/
/columns
data
  row
col id=0 translatable=yesHibernate/col
col id=13/col
col id=2True/col
  /row
  row
col id=0 translatable=yesShutdown/col
col id=12/col
col id=2True/col
  /row
/data
  /object
  object class=GtkListStore id=liststore_power
columns
  !-- column-name name --
  column type=gchararray/
  !-- column-name value --
  column type=gint/
  !-- column-name sensitive --
  column type=gboolean/
/columns
data
  row
col id=0 translatable=yesSuspend/col
col id=11/col
col id=2True/col
  /row
  row
col id=0 translatable=yesHibernate/col
col id=13/col
col id=2True/col
  /row
  row
col id=0 translatable=yesDo nothing/col
col id=15/col
col id=2True/col
  /row
  row
col id=0 translatable=yesAsk me/col
col id=14/col
col id=2True/col
  /row
  row
col id=0 translatable=yesShutdown/col
col id=12/col
col id=2True/col
  /row
/data
  /object
  object class=GtkListStore id=liststore_sleep
columns
  !-- column-name name --
  column type=gchararray/
  !-- column-name value --
  column type=gint/
  !-- column-name sensitive --
  column type=gboolean/
/columns
data
  row
col id=0 translatable=yesSuspend/col
col id=11/col
col id=2True/col
  /row
  row
col id=0 translatable=yesHibernate/col
col id=13/col
col id=2True/col
  /row
/data
  /object
  object class=GtkListStore id=liststore_time
columns
  !-- column-name name --
  column type=gchararray/
  !-- column-name value --
  column type=gint/
/columns
data
  row
col id=0 translatable=yes5 minutes/col
col id=1300/col
  /row
  row
col id=0 translatable=yes10 minutes/col
col id=1600/col
  /row
  row
col id=0 translatable=yes30 minutes/col
col id=11800/col
  /row
  row
col id=0 translatable=yes1 hour/col
col id=13600/col
  /row
  row
col id=0 translatable=yesDon't suspend/col
col id=10/col
  /row
/data
  /object
  object 

Re: I begin working some A11y related little modifications for GNOME Control Center application, please review my first patch before I attaching a future bugreport the fix

2011-10-21 Thread Mgr. Janusz Chmiel

Dear syr,

Very well done, ammazing programmers work, You are ammazing Python 
programmer and You are deeply understanding The GTK library procedures, 
methods and objects for drawing GUI of GTK compatible applications.



--
Ubuntu-accessibility mailing list
Ubuntu-accessibility@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-accessibility


Re: I begin working some A11y related little modifications for GNOME Control Center application, please review my first patch before I attaching a future bugreport the fix

2011-10-21 Thread Hammer Attila

Hy Janusz,

Thank you, but I only doed yet one own full GTK based application (Orca 
Teacher), and I always learning, because very interesting the GTK 
programming.
I am affected too with A11y related, because I using too Ubuntu releases 
with Orca screen reader. If we future more this type problems trying 
fixing and try helping easyest A11y developers work this easy fixes, any 
Ubuntu or GNOME releases is will be better and better for A11y related.


Attila

--
Ubuntu-accessibility mailing list
Ubuntu-accessibility@lists.ubuntu.com
https://lists.ubuntu.com/mailman/listinfo/ubuntu-accessibility