Menu

#1 gquod-0.2.2 fails to build: statwindow.cc:136: error: no mat

open
nobody
None
5
2009-02-04
2009-02-04
Anonymous
No

statwindow.cc: In member function ‘Gtk::Widget* StatWindow::get_image(Glib::RefPtr<Gtk::IconTheme>, Glib::ustring)’:
statwindow.cc:136: error: no matching function for call to ‘Gtk::IconTheme::load_icon(const char [13], const 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::Ico
nLookupFlags) const
statwindow.cc:141: error: no matching function for call to ‘Gtk::IconTheme::load_icon(const char [19], const 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::Ico
nLookupFlags) const
statwindow.cc:146: error: no matching function for call to ‘Gtk::IconTheme::load_icon(const char [14], const 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::Ico
nLookupFlags) const

gtkmm-2.12.7 is used.

Discussion

  • Nobody/Anonymous

     
  • Vest

    Vest - 2009-02-19

    The prototype of load_icon is correct:
    Glib::RefPtr<Gdk::Pixbuf> load_icon(const Glib::ustring& icon_name, int size, IconLookupFlags flags = (IconLookupFlags)0) const;
    It was implemented in gtkmm since 2.4, it means, there is something wrong with your include files, or in the whole gtkmm.
    Try to change the lines (136, 141, 146) from something looks like
    pixbuf = iconTheme->load_icon ("weather-few-clouds", DEFAULT_ICON_SIZE);
    to
    pixbuf = iconTheme->load_icon ("weather-few-clouds", DEFAULT_ICON_SIZE, (Gtk::IconLookupFlags)0);

     

Log in to post a comment.