#include <gtk/gtk.h>
void
on_action1_activate ()
{
  g_message ("%s", __func__);
}

int main (int argc, char **argv)
{
  GtkBuilder *builder;
  GtkAction *action;
  GtkAccelGroup *group;
  char *obj[] = {"actiongroup1", "accelgroup1", NULL};
  char *win[] = {"window", NULL};

  gtk_init (&argc, &argv);

  builder = gtk_builder_new ();

  //gtk_builder_add_from_file (builder, "test.ui", NULL);
  gtk_builder_add_objects_from_file (builder, "test.ui",obj, NULL);

  action = GTK_ACTION (gtk_builder_get_object (builder, "action1"));
  group = GTK_ACCEL_GROUP (gtk_builder_get_object (builder, "accelgroup1"));
 gtk_action_set_accel_group (action, group);
  
  gtk_builder_add_objects_from_file (builder, "test.ui", win, NULL);
  
  gtk_widget_show_all (GTK_WIDGET (gtk_builder_get_object (builder, "window")));

  gtk_accel_map_save ("test.accelmap");

  gtk_builder_connect_signals (builder, NULL);
  
  gtk_main();
}
