#include <gtk/gtk.h>

int
main (int argc, char *argv[])
{
  GtkWidget *entry;
  GtkStyleContext *context;
  GPtrArray *array;

  gtk_init (NULL, NULL);

  g_object_set (gtk_settings_get_default (),
                "gtk-key-theme-name", "Emacs",
                NULL);

  entry = gtk_entry_new ();
  context = gtk_widget_get_style_context (entry);

  gtk_style_context_get (context, 0,
                         "gtk-key-bindings", &array,
                         NULL);

  g_assert (array != NULL);

  return 0;
}
