comments on g_list_slice / g_list_splice

2005-11-29 Thread ANDREW PAPROCKI, BLOOMBERG/ 731 LEXIN
Does anyone have any comments on the possibility of creating g_list_slice and g_list_splice functions? I find myself needing to remove/add contiguous sections of a GList, and believe these functions might be useful to others. The idea would be: GList * g_list_slice(GList *list, GList *link, gin

Re: libegg/recentchooser

2005-11-29 Thread James Henstridge
Emmanuele Bassi wrote: >Hi, > >On Tue, 2005-11-29 at 14:56 -0500, Morten Welinder wrote: > > >>That code also needs to be run through Valgrind or Purify. >>egg_recent_chooser_item_activated_cb, for example, seems to have >>a double free. >> >> > >I'll check it out ASAP. > >I'm not that good

Make g_rename() replace existing files on Win32?

2005-11-29 Thread Tor Lillqvist
The rename() function in the Microsoft C library calls the Win32 API MoveFile(), which does not replace existing files. I now notice there is also a function MoveFileEx(), to which one can specify the flag MOVEFILE_REPLACE_EXISTING, which enables atomic replacement of an existing file. Sigh, why d

Re: libegg/recentchooser

2005-11-29 Thread Emmanuele Bassi
Hi, On Tue, 2005-11-29 at 14:56 -0500, Morten Welinder wrote: > That code also needs to be run through Valgrind or Purify. > egg_recent_chooser_item_activated_cb, for example, seems to have > a double free. I'll check it out ASAP. I'm not that good with Valgrind, so any help there would be much

Re: libegg/recentchooser

2005-11-29 Thread Emmanuele Bassi
Hi Matthias, On Tue, 2005-11-29 at 12:18 -0500, Matthias Clasen wrote: > Hey Emanuele, > > in an attempt to get this moving forward again, I spent some time > looking at the code thats currently in libegg, and wrote down some > random notes. Thanks. I'll try and do my best to answer. > > Matt

Re: libegg/recentchooser

2005-11-29 Thread Morten Welinder
That code also needs to be run through Valgrind or Purify. egg_recent_chooser_item_activated_cb, for example, seems to have a double free. timestamp_from_iso8601 manipulates the environment in a way that does not look po[r]table. (And it's not that hard to do using mktime-in-any-timezone, basic

libegg/recentchooser

2005-11-29 Thread Matthias Clasen
Hey Emanuele, in an attempt to get this moving forward again, I spent some time looking at the code thats currently in libegg, and wrote down some random notes. Matthias * eggdesktopbookmarks.[hc]: - Where is the GMarkup parser ? libegg still seems to have libxml - Should the name be egg_d

GTK+ team irc meeting

2005-11-29 Thread Matthias Clasen
The meeting is intended for the GTK+ team, but everybody is welcome to come and listen. The meeting logs will be posted on the GTK+ website (http://www.gtk.org/plan/meetings). Place: irc.gnome.org:#gtk-devel Time: 21:00 UTC (16:00 EST), Tue, Nov 29 Matthias ___

Re: g_list_first()

2005-11-29 Thread Olivier Sessink
Elmano Carvalho wrote: > I am writing an application that uses Singly-Linked Lists for adding and > removing elements on that list. > > I need to go through the list, identify each element and remove them on > the go... > > As the subject suggests, there's a function for getting the first > eleme