I needed to set global hotkeys (hotkeys that can be used even if the
application does not have focus). As I do not found a way to do it
with ruby-gnome2 I write rghk (ruby global hotkeys) a small librairy.
It can be found at http://zik.rubyforge.org/rghk/ under gpl license.
Hope it can be usefull for others.