fix to circumvent a problem with Iconinfo::operator bool() not being const

seemingly this has been fixed in recent gtkmm, but is still present on lenny (and etch)
This commit is contained in:
Fischlurch 2009-02-01 19:56:49 +01:00
parent 17c1942c68
commit 2cae8d8ccc

View file

@ -236,7 +236,9 @@ WindowManager::add_theme_icon_source(Gtk::IconSet &icon_set,
// Try to load the icon
RefPtr<Gtk::IconTheme> theme = Gtk::IconTheme::get_default();
REQUIRE(theme);
const IconInfo info = theme->lookup_icon(icon_name, width,
TODO ("find out how IconInfo could be made const. For example, GTKmm 2.10.10 is missing the const on operator bool() in iconinfo.h");
IconInfo info = theme->lookup_icon(icon_name, width,
(IconLookupFlags)0);
if(info)
{