/* gcc -o it-test it-test.c `pkg-config libxfcegui4-1.0 --cflags --libs` */ #include int main(int argc, char **argv) { GtkIconTheme *itheme; GtkIconInfo *info; gchar *filename; gtk_init(&argc, &argv); itheme = gtk_icon_theme_get_default(); info = gtk_icon_theme_lookup_icon(itheme, argv[1], 48, 0); g_print("From GtkIconTheme: %s\n", info ? gtk_icon_info_get_filename(info) : "(not found)"); if(info) gtk_icon_info_free(info); filename = xfce_themed_icon_lookup(argv[1], 48); g_print("From Xfce: %s\n", filename ? filename : "(not found)"); g_free(filename); return 0; }