GNOME Bugzilla – Bug 349135
RecentInfo in recentchooser.hg
Last modified: 2006-07-30 20:51:00 UTC
../../gtk/gtkmm/recentchooser.h: In static member function 'static Gtk::RecentInfo Gtk::RecentChooser::RecentInfoTraits::to_cpp_type(const GtkRecentInfo* const&)': ../../gtk/gtkmm/recentchooser.h:267: error: no matching function for call to 'Gtk::RecentInfo::RecentInfo(GtkRecentInfo*, bool)' ../../gtk/gtkmm/recentinfo.h:66: note: candidates are: Gtk::RecentInfo::RecentInfo(const Gtk::RecentInfo&) ../../gtk/gtkmm/recentinfo.h:61: note: Gtk::RecentInfo::RecentInfo() recentchooser.cc: In function 'int SignalProxy_Compare_gtk_callback(GtkRecentInfo*, GtkRecentInfo*, void*)': recentchooser.cc:36: error: no match for call to '(const sigc::slot<int, const Gtk::RecentInfo&, const Gtk::RecentInfo&, sigc::nil, sigc::nil, sigc::nil, sigc::nil, sigc::nil>) (Glib::RefPtr<Gtk::RecentInfo>, Glib::RefPtr<Gtk::RecentInfo>)' /home/marko/prefix/include/sigc++-2.0/sigc++/functors/slot.h:590: note: candidates are: T_return sigc::slot2<T_return, T_arg1, T_arg2>::operator()(typename sigc::type_trait<T_derived>::take, typename sigc::type_trait<T_arg3>::take) const [with T_return = int, T_arg1 = const Gtk::RecentInfo&, T_arg2 = const Gtk::RecentInfo&] recentchooser.cc: In member function 'Gtk::RecentInfo Gtk::RecentChooser::get_current_item() const': recentchooser.cc:636: error: conversion from 'Glib::RefPtr<Gtk::RecentInfo>' to non-scalar type 'Gtk::RecentInfo' requested The first error (in to_cpp_type()) is due to the fact that, for CLASS_OPAQUE_REFCOUNTED, gmmproc doesn't generate a constructor we're asking for here, as in: explicit CppType(CType* obj, bool take_copy) So we need some workaround for this.
Created attachment 69852 [details] [review] Proposed patch for other errors I didn't modify the CL. I'm not sure if this is correct.
Fixed in cvs. Sorry about that.