Re: How can I retrieve gtk style context information from textview widget class without a textview widget?

2015-06-12 Thread Colomban Wendling
Hi, Le 12/06/2015 14:04, Friedrich Beckmann wrote: I would like to use the style information from the textview widget in another context. I want to retrieve the text foreground color and the background color as it would be used in a textview widget and use this style information for rendering

Re: How can I retrieve gtk style context information from textview widget class without a textview widget?

2015-06-12 Thread Jim Charlton
On 15-06-12 05:04 AM, Friedrich Beckmann wrote: Hi, I would like to use the style information from the textview widget in another context. I want to retrieve the text foreground color and the background color as it would be used in a textview widget and use this style information for

Re: How can I retrieve gtk style context information from textview widget class without a textview widget?

2015-06-12 Thread Friedrich Beckmann
Thank you for the hint! Then, if you don't have an actual GtkTextView to get the style context from, you'll need to create it yourself faking the one a true text view would have. You can probably do that relatively easily with gtk_style_context_new() and then setting an appropriate widget