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:
@ -8330,9 +8330,9 @@ _gtk_window_set_is_toplevel (GtkWindow *window,
|
|||||||
gboolean is_toplevel)
|
gboolean is_toplevel)
|
||||||
{
|
{
|
||||||
if (GTK_WIDGET_TOPLEVEL (window))
|
if (GTK_WIDGET_TOPLEVEL (window))
|
||||||
g_assert (g_list_find (toplevel_list, window) != NULL);
|
g_assert (g_slist_find (toplevel_list, window) != NULL);
|
||||||
else
|
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))
|
if (is_toplevel == GTK_WIDGET_TOPLEVEL (window))
|
||||||
return;
|
return;
|
||||||
|
|||||||
Reference in New Issue
Block a user