GNOME Bugzilla – Bug 767312
gtk_widget_path_append_for_widget() misses classes unless gtk_widget_get_style_context() has been called
Last modified: 2016-06-07 16:01:08 UTC
This probably only shows up in 3.20, because before that widgets called gtk_widget_get_style_context() to set classes. I think the test on priv->context should be priv->cssnode. https://git.gnome.org/browse/gtk+/tree/gtk/gtkwidget.c?h=3.20.6#n16389
commit 775e277ab9753609b45063eb8c0171b3103a252d Author: Benjamin Otte <otte@redhat.com> Date: Tue Jun 7 16:08:52 2016 +0200 widget: Add classes to widget path even if no style context exists yet This removes leftover code from when classes where added to the style context. Now that they get added directly to css nodes, the classes can exist without a style context.