Re: Gtk::TreeView::get_cursor() is leaking?
- From: "Andrew E. Makeev" <andrew solvo ru>
- To: Murray Cumming <murrayc murrayc com>
- Cc: gtkmm-list <gtkmm-list gnome org>
- Subject: Re: Gtk::TreeView::get_cursor() is leaking?
- Date: Mon, 12 Mar 2007 18:46:47 +0300
В Пнд, 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
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]