Make sure to only update the address entry with the current view

This commit is contained in:
Christian Dywan 2009-05-15 17:30:54 +02:00
parent b0babb3c17
commit a6f2ca54e9

View file

@ -513,12 +513,15 @@ static void
midori_view_notify_uri_cb (GtkWidget* view, midori_view_notify_uri_cb (GtkWidget* view,
GParamSpec* pspec, GParamSpec* pspec,
MidoriBrowser* browser) MidoriBrowser* browser)
{
if (view == midori_browser_get_current_tab (browser))
{ {
const gchar* uri = midori_view_get_display_uri (MIDORI_VIEW (view)); const gchar* uri = midori_view_get_display_uri (MIDORI_VIEW (view));
GtkAction* action = _action_by_name (browser, "Location"); GtkAction* action = _action_by_name (browser, "Location");
midori_location_action_set_uri (MIDORI_LOCATION_ACTION (action), uri); midori_location_action_set_uri (MIDORI_LOCATION_ACTION (action), uri);
_midori_browser_update_interface (browser); _midori_browser_update_interface (browser);
} }
}
static void static void
midori_view_notify_title_cb (GtkWidget* view, midori_view_notify_title_cb (GtkWidget* view,