From 93bb9f6c5b44ec694605ab8012594f8752841be5 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sat, 17 Jan 2009 19:38:00 +0100 Subject: [PATCH] Notify URI even before it is "committed" and add an error check --- midori/midori-view.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/midori/midori-view.c b/midori/midori-view.c index 74733e8a..7f0da994 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -543,6 +543,7 @@ webkit_web_view_load_committed_cb (WebKitWebView* web_view, g_object_freeze_notify (G_OBJECT (view)); uri = webkit_web_frame_get_uri (web_frame); + g_return_if_fail (uri != NULL); katze_assign (view->uri, g_strdup (uri)); g_object_notify (G_OBJECT (view), "uri"); g_object_set (view, "title", NULL, NULL); @@ -1621,6 +1622,7 @@ midori_view_set_uri (MidoriView* view, else { katze_assign (view->uri, g_strdup (uri)); + g_object_notify (G_OBJECT (view), "uri"); webkit_web_view_open (WEBKIT_WEB_VIEW (view->web_view), uri); } }