Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 496876

Summary: [GTK3] Add GTK CSS caching functions
Product: [Eclipse Project] Platform Reporter: Eric Williams <ericwill>
Component: SWTAssignee: Eric Williams <ericwill>
Status: CLOSED DUPLICATE QA Contact:
Severity: normal    
Priority: P3 CC: akurtakov
Version: 4.7Keywords: triaged
Target Milestone: ---   
Hardware: PC   
OS: Linux   
Whiteboard:

Description Eric Williams CLA 2016-06-27 16:10:09 EDT
As GTK CSS becomes more commonplace in SWT-GTK, we should add the ability to cache current CSS and re-use it when necessary. 

This case comes up relatively often as adding CSS to a new GtkCssProvider overwrites the old CSS contained in it. This will become more prevalent now that font, colors, sizing, etc. can be managed through CSS.
Comment 1 Alexander Kurtakov CLA 2016-07-15 10:13:35 EDT
Instead of caching me can probably fetch the representation from the style context and inject/replace in it. See gtk_style_context_to_string  for details
Comment 2 Eric Williams CLA 2016-07-18 17:09:37 EDT
Will work on this after font and color port are done.
Comment 3 Eric Williams CLA 2019-02-08 15:53:30 EST
This work is being handled as part of bug 502105.

*** This bug has been marked as a duplicate of bug 502105 ***