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 702418 - spinbutton: save/restore the style context when drawing
spinbutton: save/restore the style context when drawing
Status: RESOLVED DUPLICATE of bug 709491
Product: gtk+
Classification: Platform
Component: .General
unspecified
Other All
: Normal normal
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2013-06-16 23:59 UTC by Cosimo Cecchi
Modified: 2013-12-17 20:51 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
spinbutton: save/restore the style context when drawing (1.39 KB, patch)
2013-06-16 23:59 UTC, Cosimo Cecchi
none Details | Review

Description Cosimo Cecchi 2013-06-16 23:59:27 UTC
See patch
Comment 1 Cosimo Cecchi 2013-06-16 23:59:30 UTC
Created attachment 246990 [details] [review]
spinbutton: save/restore the style context when drawing

Since commit 0032b2dc5ad4c5faffb58565a3e4589335005c9e, GtkSpinButton
caches the GtkStyleContext objects used for drawing panels; as we use
gtk_style_context_set_state() to set appropriate widget state when
drawing, we also need to save and restore the context when doing so, or
the matching state won't be correctly applied.
Comment 2 Matthias Clasen 2013-09-17 04:18:31 UTC
Not sure I follow - we always set the current state when drawing. What could go wrong ?
Comment 3 Volker Sobek (weld) 2013-12-17 20:51:17 UTC

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