]> spindle.queued.net Git - midori/commitdiff
Take text for Go button in location from the entry
authorChristian Dywan <christian@twotoasts.de>
Sat, 19 Feb 2011 22:38:34 +0000 (23:38 +0100)
committerChristian Dywan <christian@twotoasts.de>
Sat, 19 Feb 2011 22:38:34 +0000 (23:38 +0100)
midori/midori-browser.c

index 087869aa7641d396794cffb3f56ed6bcafa06f28..0974f9c9f2fe0080564045489a4ef0209350409c 100644 (file)
@@ -3597,7 +3597,10 @@ _action_location_secondary_icon_released (GtkAction*     action,
             }
         }
         else if (gtk_window_get_focus (GTK_WINDOW (browser)) == widget)
-            _action_location_submit_uri (action, uri, FALSE, browser);
+        {
+            const gchar* text = gtk_entry_get_text (GTK_ENTRY (widget));
+            _action_location_submit_uri (action, text, FALSE, browser);
+        }
         else if ((feed = g_object_get_data (G_OBJECT (view), "news-feeds")))
         {
             KatzeArray* news_feeds;