GNOME Bugzilla – Bug 781231
Let the calendar list be sorted everywhere the same manner
Last modified: 2017-04-24 13:00:00 UTC
The calendar list seems to be sorted a bit differently in quick add popover calendar selection. How to reproduce: 1. Add several new calendars, with the names "Test", "testing", "Testing again" "test only" (case sensitive) 2. See how calendars are sorted in quick add popover and calendar list (near the menu) Result: The sorting of calendars in quick add popover and calendar list in menu seems to based on different heuristics. Thanks
Assuming that you have added calendars with the names 1, 2, 3, 4 one by one. Then "Manage your calendars" button will give you (1, 2, 3, 4), "Menu button"->"Add event" will give (2, 4, 3, 1), and "Right mouse button on the day"->"Calendar list" will give you (1, 3, 4, 2). I guess you would like to have the initial order (1, 2, 3, 4) in all the cases?
Yes. Everything should be sorted alphabetically.
Created attachment 350087 [details] [review] Patch Details in the commit message
Review of attachment 350087 [details] [review]: Nice patch! I'd like to request the following changes: - Please, split this patch in one per file (one for edit dialog, one for window and one for source dialog) - The commit message needs some improvement. Please follow what is described in the Newcomers guideline (https://wiki.gnome.org/Newcomers/SubmitPatch) Also: ::: src/gcal-edit-dialog.c @@ +102,3 @@ +static gint sources_menu_sort_func (gconstpointer a, + gconstpointer b); + Don't need to add the prototype here.
Created attachment 350151 [details] [review] Patch #1 (the first part)
Created attachment 350152 [details] [review] Patch #2
Created attachment 350153 [details] [review] Patch #3
Review of attachment 350151 [details] [review]: LGTM
Review of attachment 350152 [details] [review]: LGTM
Review of attachment 350153 [details] [review]: LGTM
Thanks for the patches! Attachment 350151 [details] pushed as d76bf34 - edit-dialog: sort the list of calendars in alphabetical order Attachment 350152 [details] pushed as 6728ddd - source-dialog: use case-insensitive sorting in the calendar list Attachment 350153 [details] pushed as 7798f38 - window: use case-insensitive sorting in the calendar list