#include <gtk/gtk.h>

int
main (int argc, char **argv)
{
  GtkWidget *win;
  GtkWidget *image;
  GdkPixbuf *pix;
  //GIcon *icon;
  GtkRecentInfo *info;
  GList *items = NULL, *i;

  gtk_init (&argc, &argv);

  win = gtk_window_new (GTK_WINDOW_TOPLEVEL);
  g_signal_connect (win, "destroy", gtk_main_quit, NULL);

  items = gtk_recent_manager_get_items (gtk_recent_manager_get_default ());
  info = items->data;

  pix = gtk_recent_info_get_icon (info, GTK_ICON_SIZE_BUTTON);
  image = gtk_image_new_from_pixbuf (pix);
  g_object_unref (pix);

  //icon = gtk_recent_info_get_gicon (info);
  //image = gtk_image_new_from_gicon (icon, GTK_ICON_SIZE_BUTTON);
  //g_object_unref (icon);

  gtk_container_add (GTK_CONTAINER (win), image);

  for (i = items; i != NULL; i = i->next)
    {
      gtk_recent_info_unref (i->data);
    }
  g_list_free (items);

  gtk_widget_show_all (win);

  gtk_main ();

  return 0;
}
