Re: drag'n'drop sample application

2011-09-12 Thread John Emmas
On 11 Sep 2011, at 19:24, John Emmas wrote: > > src/gtk+-2.20.0/tests/testtreeview.c > src/gtk+-2.20.0/prop-editor.c > > [...] > > I know there aren't many people here who use gtk-win32 but if anyone does > (and can spare a few minutes) could you try building those two modules and > see if y

Re: GList empty after iteration?

2011-09-12 Thread Andrey Maklakov
Hello Craig, I think this is because after first loop, variable "events" is NULL, and you cant get first element of GList from it: g_list_next() --- Returns : the next element, or NULL if there are no more elements. > Hi All, > > I am confused about GList. My application is parsing a file and

Re: GList empty after iteration?

2011-09-12 Thread Bernhard Schuster
2011/9/12 Craig : > On Mon, 2011-09-12 at 22:20 +0200, Florian Müllner wrote: >> You are modifying the list in the loop until g_list_next() returns >> NULL ... > > Right.  I understand this now.  However, I thought using g_list_first() > would set GList *events back to the first object.  But, as yo

Re: GList empty after iteration?

2011-09-12 Thread Craig
On Mon, 2011-09-12 at 22:20 +0200, Florian Müllner wrote: > You are modifying the list in the loop until g_list_next() returns > NULL ... Right. I understand this now. However, I thought using g_list_first() would set GList *events back to the first object. But, as you state, the darn thing is

Re: GList empty after iteration?

2011-09-12 Thread Colomban Wendling
Le 12/09/2011 21:10, Craig a écrit : > Hi All, > > I am confused about GList. My application is parsing a file and creating > midi data with it. I am using GList to store the midi data. I have > created a GtkListStore to view the parsed data (to insure I am parsing > the data properly). So, belo

Re: GList empty after iteration?

2011-09-12 Thread Bernhard Schuster
2011/9/12 Craig : > Hi All, > > I am confused about GList. My application is parsing a file and creating > midi data with it. I am using GList to store the midi data.  I have > created a GtkListStore to view the parsed data (to insure I am parsing > the data properly).  So, below I iterate through

Re: GList empty after iteration?

2011-09-12 Thread Florian Müllner
On lun, 2011-09-12 at 15:10 -0400, Craig wrote: > I am shocked to see that after I iterate through the GList, I cannot > iterate through the list again. That's an easy one :-) > while(events) > { > /* [...] */ > events = g_list_next(events); >

Re: GList empty after iteration?

2011-09-12 Thread Denis Washington
Am 12.09.2011 21:10, schrieb Craig: Hi All, I am confused about GList. My application is parsing a file and creating midi data with it. I am using GList to store the midi data. I have created a GtkListStore to view the parsed data (to insure I am parsing the data properly). So, below I iterate

GList empty after iteration?

2011-09-12 Thread Craig
Hi All, I am confused about GList. My application is parsing a file and creating midi data with it. I am using GList to store the midi data. I have created a GtkListStore to view the parsed data (to insure I am parsing the data properly). So, below I iterate through the GList and "copy" the data