#include #include int main(int argc, char**argv) { gtk_init(&argc, &argv); /* teleport.png is in * /usr/share/gnome-games/icons/hicolor/24x24/actions/teleport.png * * emblem-paused.png is in * /usr/share/icons/hicolor/48x48/stock/data/emblem-paused.png */ gtk_icon_theme_append_search_path(gtk_icon_theme_get_default(), "/usr/share/gnome-games/icons/"); printf("%d\n", gtk_icon_theme_has_icon( gtk_icon_theme_get_default(), "teleport")); printf("%d\n", gtk_icon_theme_has_icon( gtk_icon_theme_get_default(), "emblem-paused")); }