Revision 3289 src/stock_pixmap.c

View differences:

stock_pixmap.c
251 251
		image = gtk_image_new_from_pixbuf(pix_d->icon_file_pixbuf);
252 252
	}
253 253

  
254
	if (!image && pix_d->icon_name)
255
		image = gtk_image_new_from_stock(pix_d->icon_name, GTK_ICON_SIZE_LARGE_TOOLBAR);
254
	if (!image && pix_d->icon_name) {
255
		if (gtk_style_lookup_icon_set(gtk_widget_get_default_style(), pix_d->icon_name))
256
			image = gtk_image_new_from_stock(pix_d->icon_name, GTK_ICON_SIZE_LARGE_TOOLBAR);
257
		else
258
			pix_d->icon_name = NULL;
259
	}
256 260

  
257 261
	if (!image)
258 262
		image = stock_pixbuf_widget(NULL, icon);

Also available in: Unified diff