diff --git a/gtk/tests/accel.c b/gtk/tests/accel.c index 0726413687..5d36b38386 100644 --- a/gtk/tests/accel.c +++ b/gtk/tests/accel.c @@ -35,6 +35,18 @@ test_one_accel (const char *accel, &keycodes, &mods); + if (has_keysym) + { + guint accel_key_2; + GdkModifierType mods_2; + + gtk_accelerator_parse (accel, + &accel_key_2, + &mods_2); + g_assert (accel_key == accel_key_2); + g_assert (mods == mods_2); + } + if (has_keysym) g_assert (accel_key != 0); g_assert (keycodes);