]> spindle.queued.net Git - midori/commitdiff
Add missing view cast in webkit_web_view_mime_type_decision_cb
authorChristian Dywan <christian@twotoasts.de>
Sun, 13 May 2012 21:42:06 +0000 (23:42 +0200)
committerChristian Dywan <christian@twotoasts.de>
Sun, 13 May 2012 21:42:06 +0000 (23:42 +0200)
midori/midori-view.c

index 934b68bb9d23cd2583b7ee990e9bedb85c54dbb7..ee4f12c31ac04faf2e7a8b1e7f168db1632791fb 100644 (file)
@@ -2895,7 +2895,7 @@ webkit_web_view_mime_type_decision_cb (GtkWidget*               web_view,
             view_source = TRUE;
         webkit_web_view_set_view_source_mode (WEBKIT_WEB_VIEW (web_view), view_source);
 
-        if (web_frame == webkit_web_view_get_main_frame (web_view))
+        if (web_frame == webkit_web_view_get_main_frame (WEBKIT_WEB_VIEW (web_view)))
         {
             katze_assign (view->mime_type, g_strdup (mime_type));
             midori_view_unset_icon (view);