Hi.
You'll need to load image manually at proper size and then create image widget. Updated code should look something like this:
Code:
for(i=0; i<=3; i++)
{
GError *error = NULL;
GdkPixbuf *pixbuf;
pixbuf = gdk_pixbuf_new_from_file_at_size ("pic.png", 100, 100, &error);
if (!pixbuf)
{
g_print ("Error: %s\n", error->message);
g_error_free (error);
/* Handle error here */
}
image[i] = gtk_image_new_from_pixbuf(pixbuf);
g_object_unref (pixbuf);
gtk_table_attach_defaults (GTK_TABLE(table_toimg), image[i], i, i+1, 0, 1);
}
Cheers,
Tadej