Allow lazy URLs for -s/ --snapshot switch
This commit is contained in:
parent
be6ea33642
commit
fec04dd1b0
1 changed files with 4 additions and 1 deletions
|
@ -2022,6 +2022,7 @@ main (int argc,
|
||||||
gchar* filename;
|
gchar* filename;
|
||||||
gint fd;
|
gint fd;
|
||||||
GtkWidget* web_view;
|
GtkWidget* web_view;
|
||||||
|
gchar* uri;
|
||||||
#if HAVE_OFFSCREEN
|
#if HAVE_OFFSCREEN
|
||||||
GtkWidget* offscreen;
|
GtkWidget* offscreen;
|
||||||
GdkScreen* screen;
|
GdkScreen* screen;
|
||||||
|
@ -2058,7 +2059,9 @@ main (int argc,
|
||||||
#endif
|
#endif
|
||||||
g_signal_connect (web_view, "load-finished",
|
g_signal_connect (web_view, "load-finished",
|
||||||
G_CALLBACK (snapshot_load_finished_cb), filename);
|
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 ();
|
gtk_main ();
|
||||||
g_free (filename);
|
g_free (filename);
|
||||||
return 0;
|
return 0;
|
||||||
|
|
Loading…
Reference in a new issue