Skip to content

GitLab

  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • gtk gtk
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 1,432
    • Issues 1,432
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 247
    • Merge requests 247
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • GNOME
  • gtkgtk
  • Issues
  • #621

Closed
Open
Created May 03, 2016 by Bugzilla@bugzilla-migration💬Reporter

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 May 02, 2018 by Timm Bäder
Assignee
Assign to
Time tracking