gtkmm-related compilation error on Debian 5.0

Bug #693586 reported by Jesper Öqvist
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Inkscape
Invalid
Undecided
Jon A. Cruz

Bug Description

I get this error while trying to compile on Debian Lenny:

interface.cpp: In function ‘void injectRenamedIcons()’:
interface.cpp:1622: error: no matching function for call to ‘Gtk::IconTheme::load_icon(Glib::ustring&, int)’
/usr/include/gtkmm-2.4/gtkmm/icontheme.h:336: note: candidates are: Glib::RefPtr<Gdk::Pixbuf> Gtk::IconTheme::load_icon(const Glib::ustring&, int, Gtk::IconLookupFlags) const

My gtkmm version:

$ aptitude show libgtkmm-2.4-dev
Package: libgtkmm-2.4-dev
New: yes
State: installed
Automatically installed: no
Version: 1:2.12.7-1

Tags: build
Revision history for this message
Jesper Öqvist (jesper-oqvist) wrote :

The problem seems to be that I'm using a problematic version of gtkmm. Which version am I supposed to compile with?

su_v (suv-lp)
tags: added: build
Revision history for this message
su_v (suv-lp) wrote :

> Which [ gtkmm ] version am I supposed to compile with?

@JonCruz - can you answer this? The code in question was added in revision 9939:
<http://bazaar.launchpad.net/~inkscape.dev/inkscape/trunk/revision/9939>

Changed in inkscape:
assignee: nobody → Jon A. Cruz (jon-joncruz)
Revision history for this message
Jon A. Cruz (jon-joncruz) wrote :

That call was added in gtkmm 2.4, so the version itself seems ok.

The method is declared with a default value on a third parameter. The message you are getting would indicate that you version does not have that default value, or is otherwise confused.

http://library.gnome.org/devel/gtkmm/unstable/classGtk_1_1IconTheme.html#a9e9307cefa458eea1e8946d9def2e527

A work-around could be to add a third parameter as

    Glib::RefPtr<Gdk::Pixbuf> pb = iconTheme->load_icon( it->second, *it2, static_cast<Gtk::IconLookupFlags>(0) );

Changed in inkscape:
status: New → In Progress
Revision history for this message
Kris (kris-degussem) wrote :

Is this still a problem and the bug in progress?

su_v (suv-lp)
Changed in inkscape:
status: In Progress → Incomplete
Revision history for this message
su_v (suv-lp) wrote :

Closing due to lack of feedback. Feel free to reopen if this issue still affects you.

Changed in inkscape:
status: Incomplete → Invalid
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.