[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Denemo-devel] copying the chord directives
From: |
Jeremiah Benham |
Subject: |
Re: [Denemo-devel] copying the chord directives |
Date: |
Sun, 19 Jul 2009 11:49:41 -0500 |
On Fri, 17 Jul 2009 17:56:19 +0100
Richard Shann <address@hidden> wrote:
> > Would it be bad to created a GList and append the selected notes
> > directives onto it? Then assign it to the newly created notes?
> what you need to do is make a list of the pointers (i.e. a list lists)
> list = g_list_append(list, note->directives);
> and note->directives = NULL;
> as you delete each note.
>
I seem to be having issues with this. putting:
if (note->directives)
list = g_list_append(list, note->directives);
in the while loop causes a segfault.
Jeremiah
> and then put the directives (ie. the g->data where g=list,
> g=g->next ...) back on to successive new notes, finally freeing the
> list (but not any data that it contain(s)/(ed)). If there are
> different numbers of notes you may have some directives left over,
> there exist functions for freeing lists of directives in objops.c
> IIRC. Richard
>
>
>
> >
> > Jeremiah
> >
> >
> > > Richard
> > >
> > >
> > >
> > >
> > > _______________________________________________
> > > Denemo-devel mailing list
> > > address@hidden
> > > http://lists.gnu.org/mailman/listinfo/denemo-devel
> >
>