Investigation: can reproduce the problematic behaviour with minimal setup

when we create a new Gtk::StyleContext and just apply a path,
then the style context looses its styling properties on context_save()
This commit is contained in:
Fischlurch 2019-08-03 22:12:36 +02:00
parent e5371f66b8
commit ec3c49f612

View file

@ -214,7 +214,11 @@ namespace research {
Gtk::StyleContext::add_provider_for_screen (screen, css_provider,
GTK_STYLE_PROVIDER_PRIORITY_APPLICATION);
auto style = srcWidget.get_style_context();
// auto style = srcWidget.get_style_context();
Gtk::WidgetPath path = srcWidget.get_path();
PStyleContext style = Gtk::StyleContext::create();
style->set_path(path);
// style->add_class(slopeClassName(2));
return style;
}