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:
parent
17c1942c68
commit
2cae8d8ccc
1 changed files with 3 additions and 1 deletions
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in a new issue