Problems finding items in a GList
- From: Ruben Porras <nahoo82 terra es>
- To: lista gtk+ <gtk-list gnome org>
- Subject: Problems finding items in a GList
- Date: 27 Oct 2002 23:39:28 +0100
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,
(GCompareFunc)strcmp);
/*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
http://www.es.debian.org/intro/about.es.html
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]