Re: Gtk::TreeView::get_cursor() is leaking?



On 3/12/07, Andrew E. Makeev <andrew solvo ru> 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.".

-andrew

GNOME has recently switched to subversion for version control.  see
http://developer.gnome.org/tools/svn.html

--
jonner


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]