css colour lookup failure after gtk_style_context_save
Submitted by Morten Welinder
Link to original bug (#765921)
Description
Created attachment 327190 Test program
With upcoming test program I get...
welinder@lenovo ~/gtkwork/gtk+-3.20.3/tests $ make testcalendar && ../libtool --mode=execute ./testcalendar
CC testcalendar.o
testcalendar.c: In function ‘main’:
testcalendar.c:61:16: warning: offset outside bounds of constant string [enabled by default]
selector = next + 1;
^
CCLD testcalendar
colour=rgb(255,0,0)
colour=rgb(46,52,54) <--- Would you look at that!
colour=rgb(255,0,0)
(The warning is inside code copied from foreigndrawing.c; I think gcc is wrong here.)
I don't see any reason why I should get a different colour just because the style context has been saved.
This is with stock gtk+ 3.20.3
Bug 758442 seems related, but that is claimed to be fixed.
Attachment 327190, "Test program":
testcalendar.c
Version: 3.20.x
Edited by Timm Bäder