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:
parent
923b126f1c
commit
b25cfb78fc
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Reference in a new issue