GNOME Bugzilla – Bug 165493
Stock items aren't initialized so "GtkImage::icon_name" doesn't work
Last modified: 2005-01-29 05:08:39 UTC
If I do this in a tiny app it doesn't work, the missing image icon is displayed instead of the stock cancel icon: image1 = g_object_new (GTK_TYPE_IMAGE, "icon_name", GTK_STOCK_CANCEL, NULL); It looks like this happens because init_stock_hash() hasn't been called yet. If I do something like gtk_stock_list_ids () first the stock cancel icon is displayed correctly.
I think this is the same problem as in bug 162791. I fixed that one some time ago. *** This bug has been marked as a duplicate of 162791 ***