[Xfce4-commits] <midori:master> Truly update text in location entry to make Home, End and friends work

Christian Dywan noreply at xfce.org
Wed Jan 20 21:58:01 CET 2010


Updating branch refs/heads/master
         to 33d90b247c7c4eb0a539a6f3430f612ce0476575 (commit)
       from e0a50c47d3fb48c2598f271c7752fc309ed7baf9 (commit)

commit 33d90b247c7c4eb0a539a6f3430f612ce0476575
Author: Christian Dywan <christian at twotoasts.de>
Date:   Wed Jan 20 21:55:54 2010 +0100

    Truly update text in location entry to make Home, End and friends work

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

diff --git a/midori/midori-locationaction.c b/midori/midori-locationaction.c
index 0078ab9..c3cfa2b 100644
--- a/midori/midori-locationaction.c
+++ b/midori/midori-locationaction.c
@@ -911,8 +911,6 @@ midori_location_action_key_press_event_cb (GtkEntry*    entry,
         if (location_action->popup && GTK_WIDGET_VISIBLE (location_action->popup))
         {
             midori_location_action_popdown_completion (location_action);
-            text = gtk_entry_get_text (entry);
-            pango_layout_set_text (gtk_entry_get_layout (entry), text, -1);
             return TRUE;
         }
 
@@ -957,8 +955,7 @@ midori_location_action_key_press_event_cb (GtkEntry*    entry,
             {
                 gchar* uri;
                 gtk_tree_model_get (model, &iter, URI_COL, &uri, -1);
-                /* Update the layout without actually changing the text */
-                pango_layout_set_text (gtk_entry_get_layout (entry), uri, -1);
+                gtk_entry_set_text (entry, uri);
                 g_free (uri);
             }
             location_action->completion_index = selected;



More information about the Xfce4-commits mailing list