[california] Require double-click to dismiss calendar popup: Closes bgo#726211
- From: Jim Nelson <jnelson src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [california] Require double-click to dismiss calendar popup: Closes bgo#726211
- Date: Thu, 13 Mar 2014 18:54:36 +0000 (UTC)
commit 4aac725dcad52a6efb7d7f2fbf5c07cf98e03543
Author: Jim Nelson <jim yorba org>
Date: Thu Mar 13 11:53:38 2014 -0700
Require double-click to dismiss calendar popup: Closes bgo#726211
Regression introduced when fixing some tear-down issues with popups.
src/host/host-calendar-popup.vala | 6 ++++--
1 files changed, 4 insertions(+), 2 deletions(-)
---
diff --git a/src/host/host-calendar-popup.vala b/src/host/host-calendar-popup.vala
index 826acbe..4cd47d9 100644
--- a/src/host/host-calendar-popup.vala
+++ b/src/host/host-calendar-popup.vala
@@ -42,7 +42,10 @@ public class CalendarPopup : Popup {
calendar.year = initial_date.year.value;
calendar.day_selected.connect(on_day_selected);
- calendar.day_selected_double_click.connect(on_day_selected);
+ calendar.day_selected_double_click.connect(() => {
+ on_day_selected();
+ dismiss();
+ });
add(calendar);
}
@@ -62,7 +65,6 @@ public class CalendarPopup : Popup {
}
date_selected(date);
- dismiss();
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]