aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Mittelstaedt <tmstaedt@t-mittelstaedt.de>2013-08-16 14:52:28 +0800
committerMilan Crha <mcrha@redhat.com>2013-08-16 14:52:28 +0800
commitdaaf089be7ea1ac97a39ce6e38696be6851d3259 (patch)
tree8b262e6edfab2e51a18539f9d9952e2838d7304f
parent7f6a004bf906a83472850f10554959057aa2d4ec (diff)
downloadgsoc2013-evolution-daaf089be7ea1ac97a39ce6e38696be6851d3259.tar
gsoc2013-evolution-daaf089be7ea1ac97a39ce6e38696be6851d3259.tar.gz
gsoc2013-evolution-daaf089be7ea1ac97a39ce6e38696be6851d3259.tar.bz2
gsoc2013-evolution-daaf089be7ea1ac97a39ce6e38696be6851d3259.tar.lz
gsoc2013-evolution-daaf089be7ea1ac97a39ce6e38696be6851d3259.tar.xz
gsoc2013-evolution-daaf089be7ea1ac97a39ce6e38696be6851d3259.tar.zst
gsoc2013-evolution-daaf089be7ea1ac97a39ce6e38696be6851d3259.zip
[alarm-notify] Do not change selection on new reminder arrival
Simply do not change selection when the dialog is already shown.
-rw-r--r--calendar/alarm-notify/alarm-queue.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/calendar/alarm-notify/alarm-queue.c b/calendar/alarm-notify/alarm-queue.c
index 4cab17fc3c..7ea3222631 100644
--- a/calendar/alarm-notify/alarm-queue.c
+++ b/calendar/alarm-notify/alarm-queue.c
@@ -1452,6 +1452,8 @@ open_alarm_dialog (TrayIconData *tray_data)
debug (("..."));
qa = lookup_queued_alarm (tray_data->cqa, tray_data->alarm_id);
if (qa) {
+ gboolean is_first = !alarm_notifications_dialog;
+
remove_tray_icon ();
if (!alarm_notifications_dialog)
@@ -1477,8 +1479,8 @@ open_alarm_dialog (TrayIconData *tray_data)
tray_data->is_in_tree = TRUE;
- gtk_tree_selection_select_iter (
- selection, &tray_data->iter);
+ if (is_first)
+ gtk_tree_selection_select_iter (selection, &tray_data->iter);
gtk_window_present (GTK_WINDOW (alarm_notifications_dialog->dialog));
}