After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 639079 - Obtain the fg color from the renderer
Obtain the fg color from the renderer
Status: RESOLVED FIXED
Product: gtk+
Classification: Platform
Component: Widget: GtkTextView
unspecified
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2011-01-09 17:12 UTC by Paolo Borelli
Modified: 2011-01-09 21:05 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Obtain the fg color from the renderer (2.27 KB, patch)
2011-01-09 17:12 UTC, Paolo Borelli
none Details | Review
Obtain the fg color from the renderer (2.40 KB, patch)
2011-01-09 17:30 UTC, Paolo Borelli
committed Details | Review

Description Paolo Borelli 2011-01-09 17:12:47 UTC
prepare_run must have been called before draw_shape, so we can avoid
fiddling the the (deprecated) style and state and just use the color
alredy set on the renderer.
Comment 1 Paolo Borelli 2011-01-09 17:12:50 UTC
Created attachment 177875 [details] [review]
Obtain the fg color from the renderer
Comment 2 Paolo Borelli 2011-01-09 17:30:05 UTC
Created attachment 177878 [details] [review]
Obtain the fg color from the renderer

prepare_run must have been called before draw_shape, so we can avoid
fiddling the the (deprecated) style and state and just use the color
alredy set on the renderer.
Comment 3 Matthias Clasen 2011-01-09 20:06:51 UTC
Review of attachment 177878 [details] [review]:

Looks good to me, assuming you have tested this a bit.
Comment 4 Paolo Borelli 2011-01-09 21:05:24 UTC
yes, I tested it.