widget: Don't assume opacity is 100%

... just because there is no style context instantiated yet. Instead,
instantiate a style context during realize() and ask it.

Fixes problems with dim labels not being dimmed on first show.

Testcase included.

https://bugzilla.gnome.org/show_bug.cgi?id=735240
This commit is contained in:
Benjamin Otte
2014-09-06 06:41:05 +02:00
parent 95959ef470
commit 9a8a4a8b14
5 changed files with 55 additions and 12 deletions

View File

@ -314,6 +314,9 @@ testdata = \
opacity.css \
opacity.ui \
opacity.ref.ui \
opacity-initial.css \
opacity-initial.ref.ui \
opacity-initial.ui \
overlay-no-main-widget.ref.ui \
overlay-no-main-widget.ui \
paned-undersized.css \