fix slist/list confusion

Don't use g_list_find on a GSList in _gtk_window_set_is_toplevel
(rh#492767).
This commit is contained in:
Matthias Clasen 2009-04-02 10:17:23 -04:00
parent 923b126f1c
commit b25cfb78fc

View File

@ -8330,9 +8330,9 @@ _gtk_window_set_is_toplevel (GtkWindow *window,
gboolean is_toplevel)
{
if (GTK_WIDGET_TOPLEVEL (window))
g_assert (g_list_find (toplevel_list, window) != NULL);
g_assert (g_slist_find (toplevel_list, window) != NULL);
else
g_assert (g_list_find (toplevel_list, window) == NULL);
g_assert (g_slist_find (toplevel_list, window) == NULL);
if (is_toplevel == GTK_WIDGET_TOPLEVEL (window))
return;