Re: Gtk::TreeView::get_cursor() is leaking?
- From: Murray Cumming <murrayc murrayc com>
- To: andrew solvo ru
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: Gtk::TreeView::get_cursor() is leaking?
- Date: Mon, 12 Mar 2007 17:09:02 +0100
On Mon, 2007-03-12 at 18:46 +0300, Andrew E. Makeev wrote:
> В Пнд, 12/03/2007 в 15:56 +0100, Murray Cumming пишет:
> > On Mon, 2007-03-12 at 17:45 +0300, Andrew E. Makeev wrote:
> > >
> > > void TreeView::get_cursor(TreeModel::Path& path, TreeViewColumn*& focus_column)
> > > {
> > > GtkTreePath* pTreePath = 0;
> > > GtkTreeViewColumn* pTreeViewColumn = 0;
> > > gtk_tree_view_get_cursor(gobj(), &pTreePath, &pTreeViewColumn);
> > >
> > > path = TreeModel::Path(pTreePath, true);
> > > focus_column = Glib::wrap(pTreeViewColumn);
> > > }
> > >
> > > Since TreeModel::Path() constructor takes copy of the GtkTreePath, we
> > > may just add at the end of the get_cursor() function:
> > >
> > > gtk_tree_path_free( pTreePath );
> > >
> > Your logic makes sense to me. Please do try patching it and, if it fixes
> > things, please submit it in bugzilla.
> >
>
> Just a small problem... I cannot access CVS:
>
> cvs -d :pserver:anonymous anoncvs gnome org:/cvs/gnome login
> (hit return as the password)
> cvs -z3 -d :pserver:anonymous anoncvs gnome org:/cvs/gnome co gtkmm
>
> it says - "Unknown host anoncvs.gnome.org.".
GNOME has switched to svn. See http://svn.gnome.org
--
Murray Cumming
murrayc murrayc com
www.murrayc.com
www.openismus.com
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]