[Xfce4-commits] <midori:master> Allow lazy URLs for -s/ --snapshot switch
Christian Dywan
noreply at xfce.org
Wed Sep 5 00:08:01 CEST 2012
Updating branch refs/heads/master
to fec04dd1b0ffa1b6875793452ad702a44921dcd2 (commit)
from be6ea336425cb5de7d44ec36435829ffcf44e498 (commit)
commit fec04dd1b0ffa1b6875793452ad702a44921dcd2
Author: Christian Dywan <christian at twotoasts.de>
Date: Tue Sep 4 18:37:33 2012 +0200
Allow lazy URLs for -s/ --snapshot switch
midori/main.c | 5 ++++-
1 files changed, 4 insertions(+), 1 deletions(-)
diff --git a/midori/main.c b/midori/main.c
index 3af3660..4e78ae4 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;
More information about the Xfce4-commits
mailing list