combobox: Don't allow an individual cell to cheat

Make sure we only set sensitive when the cell is sensitive and visible.
Also avoid invalid memory accesses if no cells existed.
This commit is contained in:
Benjamin Otte 2011-12-22 15:57:21 +01:00
parent 8a83f0c2d1
commit 9707d964f7

View File

@ -3885,13 +3885,15 @@ gtk_combo_box_list_select_func (GtkTreeSelection *selection,
NULL);
if (cell_visible && cell_sensitive)
break;
{
sensitive = TRUE;
break;
}
cell = cell->next;
}
g_list_free (cells);
sensitive = cell_sensitive;
g_list_free (cells);
}
g_list_free (columns);