Re: g_queue_find problems

2006-07-12 Thread Atanas Atanasov
Are you sure that your search key is part of the queue? The issue might be that the your search key is a copy of the string stored in the queue and the pointers won't match. If this is the case try using g_queue_find_custom and wrap strcmp in a simple function. Otherwise you will have to make sure

g_queue_find problems

2006-07-12 Thread Adam Tee
Hi all, I am having an issue when using g_queue_find. Basically, I am using it to find a filename in a queue but it is returning NULL all the time even when the filename is there. The code I am using is: if(g_queue_find(gui->prefs->history, gui->si->filename->str)) { #ifdef DEBUG g