[Xfce4-commits] <midori:master> Clicking inside the location entry closes the completion window
Christian Dywan
noreply at xfce.org
Wed Jan 20 21:46:03 CET 2010
Updating branch refs/heads/master
to e0a50c47d3fb48c2598f271c7752fc309ed7baf9 (commit)
from 4110b64ae8ba39ee35f89f707c00154f52272456 (commit)
commit e0a50c47d3fb48c2598f271c7752fc309ed7baf9
Author: Christian Dywan <christian at twotoasts.de>
Date: Wed Jan 20 21:34:17 2010 +0100
Clicking inside the location entry closes the completion window
midori/midori-locationaction.c | 17 +++++++++++++++++
1 files changed, 17 insertions(+), 0 deletions(-)
diff --git a/midori/midori-locationaction.c b/midori/midori-locationaction.c
index 1c99052..0078ab9 100644
--- a/midori/midori-locationaction.c
+++ b/midori/midori-locationaction.c
@@ -844,6 +844,21 @@ midori_location_action_changed_cb (GtkEntry* entry,
}
static gboolean
+midori_location_action_button_press_event_cb (GtkEntry* entry,
+ GdkEventKey* event,
+ MidoriLocationAction* action)
+{
+ if (action->popup && GTK_WIDGET_VISIBLE (action->popup))
+ {
+ midori_location_action_popdown_completion (action);
+
+ return TRUE;
+ }
+
+ return FALSE;
+}
+
+static gboolean
midori_location_action_key_press_event_cb (GtkEntry* entry,
GdkEventKey* event,
GtkAction* action)
@@ -1434,6 +1449,8 @@ midori_location_action_connect_proxy (GtkAction* action,
g_object_connect (child,
"signal::changed",
midori_location_action_changed_cb, action,
+ "signal::button-press-event",
+ midori_location_action_button_press_event_cb, action,
"signal::key-press-event",
midori_location_action_key_press_event_cb, action,
#if GTK_CHECK_VERSION (2, 19, 3)
More information about the Xfce4-commits
mailing list