gtkstylecontext: guard against gtk_css_widget_node_get_widget() returning NULL in...
authorChristoph Reiter <creiter@src.gnome.org>
Mon, 19 Mar 2018 17:21:25 +0000 (18:21 +0100)
committerChristoph Reiter <creiter@src.gnome.org>
Mon, 19 Mar 2018 17:21:25 +0000 (18:21 +0100)
commitd65a4c2e0abeefb1e61e32a2da2c1e1ba9987817
treea28cb14b014e7ce9a4b52a9f8b580fbf742ee256
parent92bef46b4c9bae9946f46d598ea1d49483038455
gtkstylecontext: guard against gtk_css_widget_node_get_widget() returning NULL in more places

When the widget gets finalized it clears the widgetnode and gtk_css_widget_node_get_widget
returns NULL. Guard against gtk_css_widget_node_get_widget() returning NULL like in other
places.

See https://gitlab.gnome.org/GNOME/pygobject/issues/28#note_82862
gtk/gtkstylecontext.c