icontheme.h class
- From: Luca Guglielmetti <luca guglielmetti gmail com>
- To: gtkmm-list gnome org
- Subject: icontheme.h class
- Date: Thu, 08 Mar 2007 18:42:23 +0100
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]