[Xfce4-commits] <midori:master> Don't show completion if the entry already lost focus

Christian Dywan noreply at xfce.org
Tue Jan 19 06:48:03 CET 2010


Updating branch refs/heads/master
         to 5bf92be62211456a89ae2a439115eef07f553d41 (commit)
       from b5a23cec3a8f7077f6f9210d8b539f642afb881b (commit)

commit 5bf92be62211456a89ae2a439115eef07f553d41
Author: Alexander Butenko <a.butenka at gmail.com>
Date:   Tue Jan 19 06:34:53 2010 +0100

    Don't show completion if the entry already lost focus

 midori/midori-locationaction.c |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/midori/midori-locationaction.c b/midori/midori-locationaction.c
index 404bcc5..b3281e1 100644
--- a/midori/midori-locationaction.c
+++ b/midori/midori-locationaction.c
@@ -317,6 +317,9 @@ midori_location_action_popup_timeout_cb (gpointer data)
     #endif
     gint matches, height, screen_height;
 
+    if (!gtk_widget_has_focus (action->entry))
+        return FALSE;
+
     if (G_UNLIKELY (!action->popup))
     {
         GtkWidget* popup;



More information about the Xfce4-commits mailing list