icontheme.h class



Hi all,
I'm confused.. I wrote the following code that should print "ok" to the
shell, but when I run it i get:

./ask_window
gnome-theme-preview.svg
no..

What does I have misunderstood?

--- begin code ---
Glib::RefPtr<Gtk::IconTheme> theme = Gtk::IconTheme::get_default();
std::cout << theme->get_example_icon_name() << "\n";

if (theme->has_icon(theme->get_example_icon_name() ) )
{
	std::cout << "ok" << std::endl;
}
else
{
	std::cout << "no.." << std::endl;
}
--- end code ---

regards
Guglie




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]