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 169442 - Overridden methods of interfaces don't work because of incorrect function call.
Overridden methods of interfaces don't work because of incorrect function call.
Status: RESOLVED FIXED
Product: glibmm
Classification: Bindings
Component: general
2.6.x
Other Linux
: High major
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2005-03-06 23:49 UTC by Bryan Forbes
Modified: 2005-03-07 15:22 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
interface_fix.diff (1.17 KB, patch)
2005-03-06 23:51 UTC, Bryan Forbes
none Details | Review

Description Bryan Forbes 2005-03-06 23:49:49 UTC
I was working on Coaster the other day and its Data::Store (inherited from
Gtk::TreeStore) overrides on_row_changed from Gtk::TreeModel.  It wasn't calling
the override (using 2.5.6) and I found that the new code to prevent adding an
interface twice was causing this.  I've attached a patch to fix this.
Comment 1 Bryan Forbes 2005-03-06 23:51:09 UTC
Created attachment 38350 [details] [review]
interface_fix.diff
Comment 2 Murray Cumming 2005-03-07 07:14:48 UTC
But g_type_is_type() does seems to take g_type_is_type(base, derived):
http://developer.gimp.org/api/2.0/gobject/gobject-Type-Information.html#id2859211

Possibly you have made some other mistake.
Comment 3 Murray Cumming 2005-03-07 07:15:43 UTC
Yes, Gtk::TreeStore is already GtkTreeModel. Are you explicitly calling
add_interface() too?
Comment 4 Murray Cumming 2005-03-07 15:22:51 UTC
examples/book/treeview/drag_and_drop has the same problem. I have disabled the
check for now. It's not that important.