Only apply settings on the web view if we actually have any

This commit is contained in:
Christian Dywan 2009-02-28 14:03:23 +01:00
parent c02e181750
commit 5b2380433b

View file

@ -1602,10 +1602,14 @@ midori_view_construct_web_view (MidoriView* view)
webkit_web_frame_load_done_cb, view,
NULL);
if (view->settings)
{
g_object_set (view->web_view, "settings", view->settings, NULL);
if (katze_object_has_property (view->web_view, "full-content-zoom"))
g_object_set (view->web_view, "full-content-zoom",
katze_object_get_boolean (view->settings, "zoom-text-and-images"), NULL);
katze_object_get_boolean (view->settings,
"zoom-text-and-images"), NULL);
}
gtk_widget_show (view->web_view);
gtk_container_add (GTK_CONTAINER (view), view->web_view);