There were some warnings because of the use of EggVirtualModifierType,
but the type can be changed to the GdkModifierType. A close examination
of the code shows that they are already equivalent, anyway.
Some of the code that was in the eggaccelerators.c has been moved into
GTK+. Some research shows that libegg was a staging library to test
experimental code before moving it into GTK+. This explains why lots of
the eggaccelerators.c code is duplicated exactly in GTK+.
void
egg_keymap_resolve_virtual_modifiers (GdkKeymap *keymap,
- EggVirtualModifierType virtual_mods,
+ GdkModifierType virtual_mods,
GdkModifierType *concrete_mods)
{
GdkModifierType concrete;
EggVirtualModifierType *accelerator_mods);
#endif
void egg_keymap_resolve_virtual_modifiers (GdkKeymap *keymap,
- EggVirtualModifierType virtual_mods,
+ GdkModifierType virtual_mods,
GdkModifierType *concrete_mods);
#if 0
void egg_keymap_virtualize_modifiers (GdkKeymap *keymap,
GdkKeymap *keymap = gdk_keymap_get_default ();
GdkWindow *rootwin = gdk_get_default_root_window ();
- EggVirtualModifierType virtual_mods = 0;
+ GdkModifierType virtual_mods = 0;
guint keysym = 0;
if (keymap == NULL || rootwin == NULL)
if (keysym == 0 && virtual_mods == 0)
return FALSE;
-#if 0
- if (!egg_accelerator_parse_virtual (binding->keystring,
- &keysym,
- &virtual_mods))
- return FALSE;
-#endif
TRACE (g_print ("Got accel %d, %d\n", keysym, virtual_mods));