g_queue_find problems
- From: Adam Tee <adam ajtee plus com>
- To: gtk-app-devel-list gnome org
- Subject: g_queue_find problems
- Date: Mon, 10 Jul 2006 20:28:11 +0100
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_print("File not in history list\n");
#endif
         if(g_queue_get_length(gui->prefs->history) > MAX_HISTORY)
         {
        gpointer data = g_queue_pop_head(gui->prefs->history);
      if(data)
        g_free(data);
    }
history is a queue containing strings as its data.
Is there anything obvious with this code ??
Thanks
Adam
[
Date Prev][
Date Next]   [
Thread Prev][
Thread Next]   
[
Thread Index]
[
Date Index]
[
Author Index]