#include <gtk/gtk.h>

int
main (gint argc, gchar **argv)
{
        GtkWidget *window;
        GtkWidget *image;
        gchar *name;

        gtk_init (&argc, &argv);

        if (argc > 1)
                name = argv[1];
        else
                name = "camera-web-symbolic";

        window = gtk_window_new (GTK_WINDOW_TOPLEVEL);
        gtk_window_set_default_size (GTK_WINDOW (window), 200, 200);

        image = gtk_image_new ();
        gtk_container_add (GTK_CONTAINER (window), image);

        image = gtk_image_new_from_icon_name (GTK_IMAGE (image),
                                              name,
                                              GTK_ICON_SIZE_DIALOG);

        gtk_widget_show_all (window);

        gtk_main ();

        return 0;
}

