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:
parent
e5371f66b8
commit
ec3c49f612
1 changed files with 5 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue