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 351263 - Duplicate items in Alarm menu
Duplicate items in Alarm menu
Status: RESOLVED FIXED
Product: evolution
Classification: Applications
Component: Calendar
2.8.x (obsolete)
Other All
: Normal minor
: ---
Assigned To: Chenthill P
Evolution QA team
Depends on:
Blocks:
 
 
Reported: 2006-08-14 09:05 UTC by Matthew Barnes
Modified: 2013-09-13 00:51 UTC
See Also:
GNOME target: ---
GNOME version: 2.15/2.16


Attachments
Proposed patch (1.46 KB, patch)
2006-08-14 09:11 UTC, Matthew Barnes
reviewed Details | Review
The patch from ubutu forum which fixes the issue, picked from bug 333689 and modified to fit in current cvs (2.13 KB, patch)
2006-08-22 11:43 UTC, Chenthill P
committed Details | Review

Description Matthew Barnes 2006-08-14 09:05:57 UTC
Please describe the problem:
On the Alarms dialog, it is possible to get duplicate items in the Alarm option menu.

Steps to reproduce:
1. Open the Preferences dialog to the "Calendar and Tasks" page.
2. In the Alerts section, set the preference to one of the following:
   Show a reminder 1 Days before every appointment
   Show a reminder 1 Hours before every appointment
   Show a reminder 15 Minutes before every appointment
3. Close the Preference dialog
4. Select File -> New -> Appointment and then click the Alarms button.
5. Click the Alarm option menu.


Actual results:
The second-to-last menu item _always_ shows the user preference that we selected in step 2.  So if the user selects one of the three choices given in step 2, you get a duplicate item in the menu.

Expected results:
Evolution should not display the user preference item if an equivalent item is already in the menu.

Does this happen every time?
Yes

Other information:
Comment 1 Matthew Barnes 2006-08-14 09:11:01 UTC
Created attachment 70856 [details] [review]
Proposed patch
Comment 2 Matthew Barnes 2006-08-14 09:26:13 UTC
While I'm at it, I also noticed that the patch reveals a misspelling of the word "appointment" in the CAL_MINUTES case:

    ngettext ("%d minute before appointement", ...)

Unfortunately, this gets propagated into the translation files.
Comment 3 André Klapper 2006-08-14 14:18:01 UTC
seems like i was always too lazy to file this. confirming, setting target milestone - patch attached.
srini: *ping*
Comment 4 Srinivasa Ragavan 2006-08-17 04:53:33 UTC
chen: Can you review this ? 
Comment 5 Chenthill P 2006-08-22 11:43:25 UTC
Created attachment 71358 [details] [review]
The patch from ubutu forum which fixes the issue, picked from bug 333689 and modified to fit in current cvs
Comment 6 Chenthill P 2006-08-22 12:01:14 UTC
Matthew, thanks for the patch.
The patch in comment #1 fixes the issue, but introduces another issue, selecting customize shows -1 as the alarm interval.


Fix has been committed to cvs HEAD and gnome-2-14 branch.
Comment 7 Matthew Barnes 2006-08-22 18:53:50 UTC
Cool, glad you caught the second bug.  Should I submit another patch for the "appointement" typo?  (I assume each of the .po files need to be patched.)
Comment 8 André Klapper 2006-08-23 07:40:57 UTC
matthew: yes, please file a seperate bug about the "appointement" typo.
we will fix it for 2.9, patching all of the .po file is possible, but the translators do not really like that behaviour (yes, from time to time that discussion takes place at gnome-i18n mailing list ;-).