]> spindle.queued.net Git - midori/commitdiff
Allow lazy URLs for -s/ --snapshot switch
authorChristian Dywan <christian@twotoasts.de>
Tue, 4 Sep 2012 16:37:33 +0000 (18:37 +0200)
committerChristian Dywan <christian@twotoasts.de>
Tue, 4 Sep 2012 22:06:06 +0000 (00:06 +0200)
midori/main.c

index 3af3660dfdb2df89c710963b761db19ae7bdb0f2..4e78ae4a1eb5a720f5d1fcdade3afc5f829dd0a9 100644 (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;