Ensure the web view of the thumb view is realized

This commit is contained in:
Christian Dywan 2010-06-04 23:46:27 +02:00
parent fc88d4bed3
commit 997d8df49c

View file

@ -5115,6 +5115,7 @@ thumb_view_load_status_cb (MidoriView* thumb_view,
if (katze_object_get_enum (thumb_view, "load-status") != MIDORI_LOAD_FINISHED) if (katze_object_get_enum (thumb_view, "load-status") != MIDORI_LOAD_FINISHED)
return; return;
gtk_widget_realize (midori_view_get_web_view (MIDORI_VIEW (thumb_view)));
img = midori_view_get_snapshot (MIDORI_VIEW (thumb_view), 240, 160); img = midori_view_get_snapshot (MIDORI_VIEW (thumb_view), 240, 160);
gdk_pixbuf_save_to_buffer (img, &file_content, &sz, "png", NULL, "compression", "7", NULL); gdk_pixbuf_save_to_buffer (img, &file_content, &sz, "png", NULL, "compression", "7", NULL);
encoded = g_base64_encode ((guchar *)file_content, sz ); encoded = g_base64_encode ((guchar *)file_content, sz );