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 692713 - Mini-calendar widget arrows in a wrong position
Mini-calendar widget arrows in a wrong position
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Calendar
3.8.x (obsolete)
Other Linux
: Normal normal
: ---
Assigned To: evolution-calendar-maintainers
Evolution QA team
: 707625 760077 (view as bug list)
Depends on:
Blocks:
 
 
Reported: 2013-01-28 15:38 UTC by Alexander van Loon
Modified: 2016-01-29 13:25 UTC
See Also:
GNOME target: ---
GNOME version: 3.7/3.8


Attachments
Three screenshots of the calendar widget (31.83 KB, image/png)
2013-01-28 15:38 UTC, Alexander van Loon
Details

Description Alexander van Loon 2013-01-28 15:38:42 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.
Comment 1 Matthew Barnes 2013-09-06 13:11:25 UTC
*** Bug 707625 has been marked as a duplicate of this bug. ***
Comment 2 Milan Crha 2015-11-04 17:07:04 UTC
Thanks for a bug report. Part of this had been fixed recently, within bug #749158. The arrows can still be sometimes mispositioned.
Comment 3 Milan Crha 2015-11-10 09:08:11 UTC
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+)
Comment 4 Milan Crha 2016-01-29 13:25:47 UTC
*** Bug 760077 has been marked as a duplicate of this bug. ***