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
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
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