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 500439 - Gtk::TreePath::TreePath(In pbegin, In pend) does not initialize gobject_
Gtk::TreePath::TreePath(In pbegin, In pend) does not initialize gobject_
Status: RESOLVED FIXED
Product: gtkmm
Classification: Bindings
Component: TreeView
unspecified
Other All
: Normal trivial
: ---
Assigned To: gtkmm-forge
gtkmm-forge
Depends on:
Blocks:
 
 
Reported: 2007-11-29 15:59 UTC by Svetlozar Argirov
Modified: 2008-04-02 10:45 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Svetlozar Argirov 2007-11-29 15:59:24 UTC
The Gtk::TreePath::TreePath(In pbegin, In pend) constructor does not initialize the gobject_ field of the class. 

Any attempt to use this constructor leads to segmentation fault or random behavior.

I am using version 2.8 of Gtkmm but a quick check of the SVN repository shows that this is the case  for HEAD also.

In gtk/src/treepath.hg :

template <class In> inline
TreePath::TreePath(In pbegin, In pend)
{
  this->append(pbegin, pend);
}

should be :

template <class In> inline
TreePath::TreePath(In pbegin, In pend)
:
  gobject_ (gtk_tree_path_new())
{
  this->append(pbegin, pend);
}
Comment 1 Murray Cumming 2008-04-02 10:45:30 UTC
Sorry for the delay. I've just committed that fix. Thanks.

In future please attach an svn patch, with a ChangeLog entry.