summaryrefslogtreecommitdiff
path: root/gtk/gtkwindowprivate.h
diff options
context:
space:
mode:
authorCarlos Garnacho <carlosg@gnome.org>2014-01-15 13:28:32 +0100
committerCarlos Garnacho <carlosg@gnome.org>2014-01-22 17:10:06 +0100
commit889a28097988ddc296a9e77de35507bfae117623 (patch)
tree5a68555185c48a739824aa292d1eedb45344c16d /gtk/gtkwindowprivate.h
parent5bb259bc6ad512350d7250d782f4d9b880e30ae0 (diff)
downloadgtk+-889a28097988ddc296a9e77de35507bfae117623.tar.gz
window: Use GList to store popover structs
When all popovers are removed on destroy(), if a popover is nested into (eg. with relative_to within) another popover, the removal of one can lead to the other being removed while the hashtable is being iterated, which would lead to undefined behavior in further iterations. Then, use a GList to store popovers, iterating can be made more resilient on these situations, and unless on pathological cases there's not going to be as many of those popovers as to cause performance decreases at the times those are iterated.
Diffstat (limited to 'gtk/gtkwindowprivate.h')
0 files changed, 0 insertions, 0 deletions