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 756526 - Storm of "draw" callbacks when using gtk_style_context_get with GTK_STATE_FLAG_PRELIGHT
Storm of "draw" callbacks when using gtk_style_context_get with GTK_STATE_FLA...
Status: RESOLVED DUPLICATE of bug 756524
Product: gtk+
Classification: Platform
Component: Widget: Other
3.18.x
Other Linux
: Normal critical
: ---
Assigned To: gtk-bugs
gtk-bugs
Depends on:
Blocks:
 
 
Reported: 2015-10-13 18:42 UTC by Ali
Modified: 2015-10-16 02:44 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
Simple code to illustrate the bug (10.00 KB, application/gzip)
2015-10-13 18:42 UTC, Ali
Details

Description Ali 2015-10-13 18:42:23 UTC
If I use gtk_style_context_get on the widget style context with GTK_STATE_FLAG_PRELIGHT as flag inside the draw callback, I get a storm of callbacks which make the application uses high cpu resources. 

I have included a simple test-widget to illustrate the bug. The bug is present in gtk 3.18.*, but not in gtk 3.16.* or gtk 3.14.*
Comment 1 Ali 2015-10-13 18:42:47 UTC
Created attachment 313214 [details]
Simple code to illustrate the bug
Comment 2 Matthias Clasen 2015-10-16 02:44:09 UTC

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