From cf9ec7755f570f75eec2f6fe63dc51689ec677b2 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sat, 24 Jan 2009 22:28:07 +0100 Subject: [PATCH] Properly synchronize the proxy item of the view --- midori/midori-view.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/midori/midori-view.c b/midori/midori-view.c index 7f0da994..5bfe9007 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -545,6 +545,8 @@ webkit_web_view_load_committed_cb (WebKitWebView* web_view, uri = webkit_web_frame_get_uri (web_frame); g_return_if_fail (uri != NULL); katze_assign (view->uri, g_strdup (uri)); + if (view->item) + katze_item_set_uri (view->item, uri); g_object_notify (G_OBJECT (view), "uri"); g_object_set (view, "title", NULL, NULL); @@ -1552,6 +1554,8 @@ midori_view_set_uri (MidoriView* view, { katze_assign (view->uri, g_strdup (uri)); g_object_notify (G_OBJECT (view), "uri"); + if (view->item) + katze_item_set_uri (view->item, uri); data = g_strdup_printf ("%s - %s", _("Source"), &uri[12]); g_object_set (view, "title", data, NULL); g_free (data); @@ -1612,6 +1616,8 @@ midori_view_set_uri (MidoriView* view, WEBKIT_WEB_VIEW (view->web_view), data, view->uri); g_free (data); g_object_notify (G_OBJECT (view), "uri"); + if (view->item) + katze_item_set_uri (view->item, uri); return; } } @@ -1623,6 +1629,8 @@ midori_view_set_uri (MidoriView* view, { katze_assign (view->uri, g_strdup (uri)); g_object_notify (G_OBJECT (view), "uri"); + if (view->item) + katze_item_set_uri (view->item, uri); webkit_web_view_open (WEBKIT_WEB_VIEW (view->web_view), uri); } } -- 2.39.5