[gnome-calendar] window: fixed key handler code
- From: Georges Basile Stavracas Neto <gbsneto src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-calendar] window: fixed key handler code
- Date: Thu, 4 Dec 2014 22:57:46 +0000 (UTC)
commit 7cd4fd032b775b3988e68bb96c81fbde4a5ea717
Author: Georges Basile Stavracas Neto <georges stavracas gmail com>
Date: Thu Dec 4 20:57:31 2014 -0200
window: fixed key handler code
When in GcalWindow::new-event-mode, the key handler cannot redirect input to search bar. This commit
fixes it.
src/gcal-window.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/src/gcal-window.c b/src/gcal-window.c
index 055ee7d..b253766 100644
--- a/src/gcal-window.c
+++ b/src/gcal-window.c
@@ -226,6 +226,10 @@ key_pressed (GtkWidget *widget,
priv = gcal_window_get_instance_private (GCAL_WINDOW (user_data));
+ /* special case: creating an event */
+ if (priv->new_event_mode)
+ return GDK_EVENT_PROPAGATE;
+
return gtk_search_bar_handle_event (GTK_SEARCH_BAR (priv->search_bar),
event);
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]