After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 349135 - RecentInfo in recentchooser.hg
RecentInfo in recentchooser.hg
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: general
2.9.x
Other Linux
: Normal normal
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2006-07-28 23:14 UTC by Marko Anastasov
Modified: 2006-07-30 20:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Proposed patch for other errors (1.56 KB, patch)
2006-07-28 23:18 UTC, Marko Anastasov
none Details | Review

Description Marko Anastasov 2006-07-28 23:14: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.
Comment 1 Marko Anastasov 2006-07-28 23:18:51 UTC
Created attachment 69852 [details] [review]
Proposed patch for other errors

I didn't modify the CL. I'm not sure if this is correct.
Comment 2 Murray Cumming 2006-07-30 20:51:00 UTC
Fixed in cvs. Sorry about that.