Re: gtk_list_find() problem



On Thu, 30 Dec 2004 21:43:50 -0600, David <dbree duo-county com> wrote:
I know I ask some quite elementary questions, but here's another.  I've
pored over this thing and can't find the problem.

Heres the problem:
    offsetpt = gtk_entry_get_text (GTK_ENTRY (GTK_BIN (
                                   data->offset_entry)->child));

offsetpt, you would think would be the same over and over because
the content of the string is the same, but the address of the string is 
different ;-)

You could use g_list_find_custom to compare the string
(I wonder if you could get away with just passing `strcmp' as
a compare func ;-).

Cheers,
                                                -Tristan



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]