Gdk 'keys-changed' signal not emitted



Hi,
I was wondering if anyone had any ideas why the gdk 'keys-changed'
signal is not working properly for me.
This is my connect call:
  g_signal_connect (G_OBJECT (someKeyMap), "keys_changed",
                             CALLBACK (someFunction), (gpointer) someData);
My callback:
static void test_keys(GdkKeymap *keymap, gpointer user_data)
{ g_printf("test\n"); }

I tried changing "keys_changed" to "keys-changed" and still no dice.

What im looking for is a way to detect when the keyboard
mapping/layout changes. Ive done it using low-level XKB APIs but from
what i understood from
http://developer.gnome.org/doc/API/2.0/gdk/gdk-Keyboard-Handling.html
that it should work using this signal as well.

I may have misunderstood something. Any advice is appreciated.
Thanks.



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]