From: Christian Dywan Date: Sat, 17 Jan 2009 18:38:00 +0000 (+0100) Subject: Notify URI even before it is "committed" and add an error check X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=93bb9f6c5b44ec694605ab8012594f8752841be5;p=midori Notify URI even before it is "committed" and add an error check --- 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); } }