
#include <gtk/gtk.h>

static void
row_activated_cb (GtkListBox    *list,
                  GtkListBoxRow *row,
                  gpointer       user_data)
{
  g_message ("Row activated");
}


void
main (int argc, char **argv)
{
  gtk_init (&argc, &argv);
  GtkWidget *window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  GtkBuilder *b = gtk_builder_new_from_file ("t.ui");
  GtkWidget *list = GTK_WIDGET (gtk_builder_get_object (b, "list"));
  g_signal_connect (G_OBJECT (list), "row-activated", G_CALLBACK (row_activated_cb), NULL);

  gtk_container_add (GTK_CONTAINER (window), list);

  gtk_widget_show_all (window);
  gtk_main ();
}





