From fec04dd1b0ffa1b6875793452ad702a44921dcd2 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Tue, 4 Sep 2012 18:37:33 +0200 Subject: [PATCH] Allow lazy URLs for -s/ --snapshot switch --- midori/main.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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; -- 2.39.5