GNOME Bugzilla – Bug 692713
Mini-calendar widget arrows in a wrong position
Last modified: 2016-01-29 13:25:47 UTC
Created attachment 234630 [details] Three screenshots of the calendar widget There is a calendar widget seen in the lower left half of the Evolution window if the calendar is displayed. It has arrows to browse through the month and year but the don't display correctly. I've created three screenshots. In the first screenshot on the left everything is all right. In the second the border of the sidebar is moved to the left so that the calendar widget doesn't have enough space, then the arrows start overlapping. In the third screenshot you can see what they look like if you hover over them with the mouse button. They overlap the calendar widget. I wasn't sure if this is a GTK bug or if these are custom widgets for Evolution. I doubted if I should file a bug for this because it is so obvious, but in my experience I should never assumptions about the obviousness of bugs.
*** Bug 707625 has been marked as a duplicate of this bug. ***
Thanks for a bug report. Part of this had been fixed recently, within bug #749158. The arrows can still be sometimes mispositioned.
There were two issues with the wrong position of the arrows: a) the GtkLayout calls gtk_widget_queue_resize() on the arrow when it's moved, but this call can be silently ignored when it's called within a size_allocate signal handler, which happened here b) the correct width of the drawn calendar is computed only after it is drawn, but the draw happens after the position of the arrows, using old width. I addressed both things with the below commit. Due to the nature of the processing through the main context queue the arrows still look like chasing the right position, but once the resize is over they are placed in the correct positions. Created commit 15114c4 in evo master (3.19.2+) Created commit 914dfe7 in evo gnome-3-18 (3.18.3+)
*** Bug 760077 has been marked as a duplicate of this bug. ***