[evolution] [alarm-notify] Do not change selection on new reminder arrival
- From: Milan Crha <mcrha src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [evolution] [alarm-notify] Do not change selection on new reminder arrival
- Date: Fri, 16 Aug 2013 07:08:30 +0000 (UTC)
commit daaf089be7ea1ac97a39ce6e38696be6851d3259
Author: Thomas Mittelstaedt <tmstaedt t-mittelstaedt de>
Date: Fri Aug 16 08:52:28 2013 +0200
[alarm-notify] Do not change selection on new reminder arrival
Simply do not change selection when the dialog is already shown.
calendar/alarm-notify/alarm-queue.c | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/calendar/alarm-notify/alarm-queue.c b/calendar/alarm-notify/alarm-queue.c
index 4cab17f..7ea3222 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));
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]