fix infinite loop when gtk_combo_func() returns NULL (bug #75464)

2002-03-19  jacob berkman  <jacob@ximian.com>

	* gtk/gtkcombo.c (gtk_combo_find): fix infinite loop when
	gtk_combo_func() returns NULL (bug #75464)
This commit is contained in:
jacob berkman 2002-03-19 17:59:13 +00:00 committed by Jacob Berkman
parent 226b6a3e35
commit fbd96f31d4
7 changed files with 33 additions and 5 deletions

View File

@ -1,3 +1,8 @@
2002-03-19 jacob berkman <jacob@ximian.com>
* gtk/gtkcombo.c (gtk_combo_find): fix infinite loop when
gtk_combo_func() returns NULL (bug #75464)
2002-03-18 jacob berkman <jacob@ximian.com>
* gtk/gtkaspectframe.c (gtk_aspect_frame_class_init): set the

View File

@ -1,3 +1,8 @@
2002-03-19 jacob berkman <jacob@ximian.com>
* gtk/gtkcombo.c (gtk_combo_find): fix infinite loop when
gtk_combo_func() returns NULL (bug #75464)
2002-03-18 jacob berkman <jacob@ximian.com>
* gtk/gtkaspectframe.c (gtk_aspect_frame_class_init): set the

View File

@ -1,3 +1,8 @@
2002-03-19 jacob berkman <jacob@ximian.com>
* gtk/gtkcombo.c (gtk_combo_find): fix infinite loop when
gtk_combo_func() returns NULL (bug #75464)
2002-03-18 jacob berkman <jacob@ximian.com>
* gtk/gtkaspectframe.c (gtk_aspect_frame_class_init): set the

View File

@ -1,3 +1,8 @@
2002-03-19 jacob berkman <jacob@ximian.com>
* gtk/gtkcombo.c (gtk_combo_find): fix infinite loop when
gtk_combo_func() returns NULL (bug #75464)
2002-03-18 jacob berkman <jacob@ximian.com>
* gtk/gtkaspectframe.c (gtk_aspect_frame_class_init): set the

View File

@ -1,3 +1,8 @@
2002-03-19 jacob berkman <jacob@ximian.com>
* gtk/gtkcombo.c (gtk_combo_find): fix infinite loop when
gtk_combo_func() returns NULL (bug #75464)
2002-03-18 jacob berkman <jacob@ximian.com>
* gtk/gtkaspectframe.c (gtk_aspect_frame_class_init): set the

View File

@ -1,3 +1,8 @@
2002-03-19 jacob berkman <jacob@ximian.com>
* gtk/gtkcombo.c (gtk_combo_find): fix infinite loop when
gtk_combo_func() returns NULL (bug #75464)
2002-03-18 jacob berkman <jacob@ximian.com>
* gtk/gtkaspectframe.c (gtk_aspect_frame_class_init): set the

View File

@ -319,9 +319,9 @@ gtk_combo_find (GtkCombo * combo)
else
compare_text = g_utf8_casefold (text, -1);
clist = GTK_LIST (combo->list)->children;
while (!found && clist && clist->data)
for (clist = GTK_LIST (combo->list)->children;
!found && clist;
clist = clist->next)
{
ltext = gtk_combo_func (GTK_LIST_ITEM (clist->data));
if (!ltext)
@ -335,8 +335,6 @@ gtk_combo_find (GtkCombo * combo)
if (!combo->case_sensitive)
g_free (ltext);
clist = clist->next;
}
if (!combo->case_sensitive)