stylecontext: Use correct parent style for lookups

After 3a337156d1 style lookups still used
the parent context's style as the parent style, even though after a
gtk_style_context_save() the root style of the style context is the
proper parent.

Testcase attached.
This commit is contained in:
Benjamin Otte
2014-12-21 21:30:51 +01:00
parent 26f36ef8ae
commit ad199e4cf9
5 changed files with 75 additions and 9 deletions

View File

@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<!-- Generated with glade 3.18.3 -->
<interface>
<requires lib="gtk+" version="3.12"/>
<object class="GtkWindow" id="window1">
<property name="can_focus">False</property>
<property name="type">popup</property>
<child>
<object class="GtkLabel" id="label1">
<property name="visible">True</property>
<property name="can_focus">False</property>
<property name="label" translatable="yes">GREEN
&lt;a href="http://www.gtk.org"&gt;GREEN&lt;/a&gt;</property>
<property name="use_markup">True</property>
</object>
</child>
</object>
</interface>