mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2025-01-03 17:21:11 +00:00
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
@ -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;
|
||||||
|
Loading…
Reference in New Issue
Block a user