From: Christian Dywan Date: Tue, 4 Sep 2012 16:37:33 +0000 (+0200) Subject: Allow lazy URLs for -s/ --snapshot switch X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fec04dd1b0ffa1b6875793452ad702a44921dcd2;p=midori Allow lazy URLs for -s/ --snapshot switch --- diff --git a/midori/main.c b/midori/main.c index 3af3660d..4e78ae4a 100644 --- a/midori/main.c +++ b/midori/main.c @@ -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;