GNOME Bugzilla – Bug 743180
padding is not updated correctly
Last modified: 2015-02-11 09:34:21 UTC
Created attachment 294883 [details] [review] update paddings on size allocate Padding is wrong for some widgets with gtk+ master. Padding is updated for some widgets once, when creating the widgets. However the padding should be updated on "size-allocate" signal to reflect widget changes.
Created attachment 294884 [details] screenshot with broken padding See the account type, or last login fields...
It affects other panels (at least printers) which are using this widgets...
Created attachment 295548 [details] [review] update padding on style updated Patch is changed to use "style-updated" (after discussion on #control-center).
Review of attachment 295548 [details] [review]: That looks fine to me.
Comment on attachment 295548 [details] [review] update padding on style updated commit a4521c15d5f1bf29adeb73d5e345804e67ea7454
Thanks for the review!
It seems it isn't fixed properly :-( The padding is wrong rarely. It seems style_updated signal isn't emitted properly. The widget get several style_updated signals usually. When the padding is wrong, only one signal was handled (and style context got zero values)...
I've rebuilt gtk+ with all dependencies. It seems it is working reliably now (succeeded in tens of iteration of my test). There are correct values for all style_updated signals, also for the first one, so closing again...