diff options
author | Suman Manjunath <msuman@src.gnome.org> | 2008-12-08 12:02:47 +0800 |
---|---|---|
committer | Suman Manjunath <msuman@src.gnome.org> | 2008-12-08 12:02:47 +0800 |
commit | 7223655df2828370ab19f14953ecd22a30a4b55f (patch) | |
tree | 316d1edfe4a3daa3288d5420d5ffc3d8a141d61d /calendar | |
parent | 7b221ebc07a7867c3528b113e82f25a01816a015 (diff) | |
download | gsoc2013-evolution-7223655df2828370ab19f14953ecd22a30a4b55f.tar.gz gsoc2013-evolution-7223655df2828370ab19f14953ecd22a30a4b55f.tar.zst gsoc2013-evolution-7223655df2828370ab19f14953ecd22a30a4b55f.zip |
Patch from Paul Bolle <pebolle@tiscali.nl> : Fix for bug #551599 (Do not fallback to default 15 minutes alarm offset if alarm is triggered at start (or end) of appointment).
svn path=/trunk/; revision=36837
Diffstat (limited to 'calendar')
-rw-r--r-- | calendar/ChangeLog | 8 | ||||
-rw-r--r-- | calendar/gui/dialogs/alarm-dialog.c | 17 |
2 files changed, 16 insertions, 9 deletions
diff --git a/calendar/ChangeLog b/calendar/ChangeLog index 58c6860eaf..4ec1932a79 100644 --- a/calendar/ChangeLog +++ b/calendar/ChangeLog @@ -1,3 +1,11 @@ +2008-12-08 Paul Bolle <pebolle@tiscali.nl> + + ** Fix for bug #551599 + + * gui/dialogs/alarm-dialog.c: (populate_widgets_from_alarm): + Do not fallback to default 15 minutes alarm offset if alarm is + triggered at start (or end) of appointment. + 2008-12-05 Milan Crha <mcrha@redhat.com> ** Part of fix for bug #332629 diff --git a/calendar/gui/dialogs/alarm-dialog.c b/calendar/gui/dialogs/alarm-dialog.c index a5f13ccb51..7e429a28b2 100644 --- a/calendar/gui/dialogs/alarm-dialog.c +++ b/calendar/gui/dialogs/alarm-dialog.c @@ -623,19 +623,18 @@ populate_widgets_from_alarm (Dialog *dialog) break; } - if ( trigger->u.rel_duration.hours ) { + if ( trigger->u.rel_duration.days ) { + e_dialog_option_menu_set (dialog->value_units, DAYS, value_map); + e_dialog_spin_set (dialog->interval_value, trigger->u.rel_duration.days); + } else if ( trigger->u.rel_duration.hours ) { e_dialog_option_menu_set (dialog->value_units, HOURS, value_map); e_dialog_spin_set (dialog->interval_value, trigger->u.rel_duration.hours); - } - - if ( trigger->u.rel_duration.minutes ){ + } else if ( trigger->u.rel_duration.minutes ) { e_dialog_option_menu_set (dialog->value_units, MINUTES, value_map); e_dialog_spin_set (dialog->interval_value, trigger->u.rel_duration.minutes); - } - - if ( trigger->u.rel_duration.days ){ - e_dialog_option_menu_set (dialog->value_units, DAYS, value_map); - e_dialog_spin_set (dialog->interval_value, trigger->u.rel_duration.days); + } else { + e_dialog_option_menu_set (dialog->value_units, MINUTES, value_map); + e_dialog_spin_set (dialog->interval_value, 0); } /* Repeat options */ |