Problems finding items in a GList

default_list is a GList, the values of the GList are token from labels,
when the label is going to change, first, I get the text label, then I
remove the item of the GList, after that I change the label and add it
to the GList. The problem is that I'm unable to find the item if the
list (but if I print all the members of the GList it's there).

GString *label = g_string_new(NULL);
GList *rem = NULL;

g_string_assign(label, gtk_label_get_text(GTK_LABEL (obox[j].name)));
rem = g_list_find_custom(default_list, label->str,
/*the remove it, change the label and add it*/

Thanks for your help.
The chains are broken and the door is open wide
Our eyes adjusting to the light that was denied
And bring a sense of wonder

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