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 729979 - calendar: Factor out event highlighting
calendar: Factor out event highlighting
Status: RESOLVED OBSOLETE
Product: gnome-shell
Classification: Core
Component: calendar
3.12.x
Other All
: Normal normal
: ---
Assigned To: gnome-shell-maint
gnome-shell-maint
Depends on:
Blocks:
 
 
Reported: 2014-05-12 01:09 UTC by Volker Sobek (weld)
Modified: 2021-07-05 14:23 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
calendar: Factor out event highlighting (4.52 KB, patch)
2014-05-12 01:09 UTC, Volker Sobek (weld)
none Details | Review
Added one more safty check (4.54 KB, patch)
2014-05-12 01:21 UTC, Volker Sobek (weld)
none Details | Review

Description Volker Sobek (weld) 2014-05-12 01:09:08 UTC
Commit e117aa529784 introduced some looping, resulting in rebuilding the
calendar twice: Calendar._rebuildCalendar() did rebuild the calendar
days, then requested the range of events from the Calendar._eventSource
for the visible days. The event source would then in turn emit the
'changed' signal, which had been connected to the
Calendar._rebuildCalendar() yet again.

This patch changes _rebuildCalendar() to no longer set the
'calendar-day-with-events' style class, but still request the range from
the event source when the rebuilding has been done. The 'changed' signal
of the event source is now connected to the new _highlightEvents() method
which takes care of setting the style class according to the event
source, without rebuilding the calendar days again.

From a user's point of view this fixes again (originally fixed in commit
257e1f3096b3) the loss of keyboard focus when rebuilding the calendar
after clicking on a day outside of the currently shown month.
Comment 1 Volker Sobek (weld) 2014-05-12 01:09:11 UTC
Created attachment 276351 [details] [review]
calendar: Factor out event highlighting
Comment 2 Volker Sobek (weld) 2014-05-12 01:21:06 UTC
Created attachment 276352 [details] [review]
Added one more safty check
Comment 3 Bastien Nocera 2014-11-07 15:10:38 UTC
Patch still applies cleanly.
Comment 4 GNOME Infrastructure Team 2021-07-05 14:23:15 UTC
GNOME is going to shut down bugzilla.gnome.org in favor of  gitlab.gnome.org.
As part of that, we are mass-closing older open tickets in bugzilla.gnome.org
which have not seen updates for a longer time (resources are unfortunately
quite limited so not every ticket can get handled).

If you can still reproduce the situation described in this ticket in a recent
and supported software version, then please follow
  https://wiki.gnome.org/GettingInTouch/BugReportingGuidelines
and create a new ticket at
  https://gitlab.gnome.org/GNOME/gnome-shell/-/issues/

Thank you for your understanding and your help.