Re: keyboard functions

2007-12-03 Thread linux user
Mr. Owen Taylor,


I'm very glad. Is the kind of answer that I hope !. Thanks a lot !.

>Applications can use libXkb and libXklavier if they need the functionality.

Is there anywhere that I can post my doubts in using these functions ?
(I see that in the API reference, there are not too much explanations
...). But thanks anyway...

Thanks a lot for your answer !

> - Owen
___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list


Re: keyboard functions

2007-12-03 Thread Owen Taylor

On Sat, 2007-12-01 at 14:19 +0100, linux user wrote:
> Every day is more and more necessary to dominate the keyboard,
> especially in applications running in a globalized contexts which work
> with different languages, so need to switch / change the configuration
> of characters (letters) along the keyboard (according those
> languages). Or more exactly, with the same keycodes (because usually
> the same keyboard) produce different letters according the prefered
> layouts of each language.
> 
> X Window System foresaw this situation and provide us some
> mechanisms... among them, we have the configuration files placed (at
> least on my computer) in /usr/share/X11/xkb and /etc/X11. Default
> keyboard configurations (layouts & variants, mainly, rigth here..)
> -set in /etc/X11/xorg.conf- are defined in /usr/share/X11/xkb/...
> Furthermore, if an option like "grp:switch,grp:shift_toggle" or
> "grp:switch,grp:alt_shift_toggle" is provided, it's possible to switch
> among two, three or four keyboards (= character configurations).
> 
> It's also possible, in a graphical console, to use the command
> "setxkbmap", and in
> Gnome Dektop Environment, we have the gnome-keyboard-properties
> application. But... Why the silence in the GTK+ users list when I ask
> the way to do it in my GTK+ applications ?

Perhaps:

http://freedesktop.org/wiki/Software/LibXklavier

Would help you. These features will not be added to GTK+ itself because:

 - They are only useful for a very small number of applications

 - They are not useful for applications running inside a desktop
   environment like GNOME or KDE.

 - They are X specific. Other systems configure keyboards very
   differently.

 - There's no advantage in adding them to GTK+, since they are X
   specific. Applications can use libXkb and libXklavier 
   if they need the functionality.
 
- Owen



signature.asc
Description: This is a digitally signed message part
___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list


keyboard functions

2007-12-01 Thread linux user
Every day is more and more necessary to dominate the keyboard,
especially in applications running in a globalized contexts which work
with different languages, so need to switch / change the configuration
of characters (letters) along the keyboard (according those
languages). Or more exactly, with the same keycodes (because usually
the same keyboard) produce different letters according the prefered
layouts of each language.

X Window System foresaw this situation and provide us some
mechanisms... among them, we have the configuration files placed (at
least on my computer) in /usr/share/X11/xkb and /etc/X11. Default
keyboard configurations (layouts & variants, mainly, rigth here..)
-set in /etc/X11/xorg.conf- are defined in /usr/share/X11/xkb/...
Furthermore, if an option like "grp:switch,grp:shift_toggle" or
"grp:switch,grp:alt_shift_toggle" is provided, it's possible to switch
among two, three or four keyboards (= character configurations).

It's also possible, in a graphical console, to use the command
"setxkbmap", and in
Gnome Dektop Environment, we have the gnome-keyboard-properties
application. But... Why the silence in the GTK+ users list when I ask
the way to do it in my GTK+ applications ?

I mean,

* I need the function to get the available keyboards, so the different
options related about, defined in the X System, to configure the
current keyboard  (the physical peripherical)...

* To let (the 2nd function) the GTK+ application reconfiguring the
keyboard semi-automatically...

* All of this, knowing always (the 3rd. one) the current keyboard
complete configuration (maybe an special structure).


I'd like to *talk* you about it.

Especially, know if it's possible to do it now using the GTK+
libraries (GDK,...) and if not, how can I do it to entrust the
development of these functions (since I'm not an expert of the X
Window System, Xlib...) ?
___
gtk-devel-list mailing list
gtk-devel-list@gnome.org
http://mail.gnome.org/mailman/listinfo/gtk-devel-list