It seems like every function in XfceIconTheme is deprecated. What should I use instead?
But gdk_pixbuf_new_from_file() requires the full path.
If you need a themed generic icon, do something like:
pixbuf = gtk_icon_theme_load_icon(theme, "gnome-media-player", icon_size, 0, NULL);
lookup the names under /usr/share/pixmaps or icons
Also you can use themed gtk stock icons:
pixbuf = gtk_image_new_from_stock( GTK_STOCK_MEDIA_PLAY, GTK_ICON_SIZE_BUTTON);