Allow lazy URLs for -s/ --snapshot switch

This commit is contained in:
Christian Dywan 2012-09-04 18:37:33 +02:00
parent be6ea33642
commit fec04dd1b0

View file

@ -2022,6 +2022,7 @@ main (int argc,
gchar* filename;
gint fd;
GtkWidget* web_view;
gchar* uri;
#if HAVE_OFFSCREEN
GtkWidget* offscreen;
GdkScreen* screen;
@ -2058,7 +2059,9 @@ main (int argc,
#endif
g_signal_connect (web_view, "load-finished",
G_CALLBACK (snapshot_load_finished_cb), filename);
webkit_web_view_load_uri (WEBKIT_WEB_VIEW (web_view), snapshot);
uri = midori_prepare_uri (snapshot);
webkit_web_view_load_uri (WEBKIT_WEB_VIEW (web_view), uri);
g_free (uri);
gtk_main ();
g_free (filename);
return 0;