From 2cae8d8ccc67a4df2e050ebe6cc911b238c478d2 Mon Sep 17 00:00:00 2001 From: Ichthyostega Date: Sun, 1 Feb 2009 19:56:49 +0100 Subject: [PATCH] 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) --- src/gui/window-manager.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gui/window-manager.cpp b/src/gui/window-manager.cpp index 04f9ffdc9..0e6319816 100644 --- a/src/gui/window-manager.cpp +++ b/src/gui/window-manager.cpp @@ -236,7 +236,9 @@ WindowManager::add_theme_icon_source(Gtk::IconSet &icon_set, // Try to load the icon RefPtr 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) {