Revision 3289

View differences:

src/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);
ChangeLog
1
2013-10-23
2

  
3
	* src/stock_pixmap.c: stock_pixbuf_widget_for_toolbar():
4
	  check if icon for stock id exist (fixes empty toolbar icons).
5

  
1 6
2013-10-04
2 7

  
3 8
	* src/compose.c

Also available in: Unified diff