Re: gtk-app-devel-list Digest, Vol 27, Issue 15
- From: Adam Tee <adam ajtee plus com>
- To: gtk-app-devel-list gnome org
- Subject: Re: gtk-app-devel-list Digest, Vol 27, Issue 15
- Date: Wed, 12 Jul 2006 22:34:14 +0100
Date: Wed, 12 Jul 2006 22:51:57 +0200
From: David Ne?as (Yeti) <yeti physics muni cz>
Subject: Re: Problems using g_queue_find
Is the string gui->si->filename->str *physically* the same
string (i.e. the same pointer) as some data in the queue?
No there are not, which explains the problem.
g_queue_find() simply compares pointers, to check for an
equal string you have to use g_queue_find_custom() with
string comparison.
That was going to be my next step.
Thanks
Adam
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]