summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorKernc <kerncece@gmail.com>2014-08-30 16:58:15 +0200
committerArx Cruz <arxcruz@gnome.org>2014-10-21 15:36:39 +0200
commit8098bb3dd7c6e1742fb0c8ac349ec35333b15a25 (patch)
treec061dfc19b9192c4c8934dce5d91ae2766e2e235 /src
parentAdded time-remaining support to progress bars (diff)
downloadzenity-8098bb3dd7c6e1742fb0c8ac349ec35333b15a25.tar.gz
zenity-8098bb3dd7c6e1742fb0c8ac349ec35333b15a25.tar.bz2
zenity-8098bb3dd7c6e1742fb0c8ac349ec35333b15a25.zip
Allow --text-info to load resources from absolute file:// URIs
Diffstat (limited to 'src')
-rw-r--r--src/text.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/text.c b/src/text.c
index fda60dcd..e5ba15e9 100644
--- a/src/text.c
+++ b/src/text.c
@@ -59,7 +59,7 @@ zenity_configure_webkit (WebKitWebView *web_view)
g_object_set(G_OBJECT(settings), "enable-developer-extras", FALSE, NULL);
/* unexisting property? g_object_set(G_OBJECT(settings), "enable-dns-prefetching", FALSE, NULL);*/
g_object_set(G_OBJECT(settings), "enable-dom-paste", FALSE, NULL);
- g_object_set(G_OBJECT(settings), "enable-file-access-from-file-uris", FALSE, NULL);
+ g_object_set(G_OBJECT(settings), "enable-file-access-from-file-uris", TRUE, NULL);
/* unexisting property? g_object_set(G_OBJECT(settings), "enable-frame-flattening", FALSE, NULL);*/
/* unexisting property? g_object_set(G_OBJECT(settings), "enable-fullscreen", FALSE, NULL);*/
g_object_set(G_OBJECT(settings), "enable-html5-database", FALSE, NULL);
@@ -319,7 +319,7 @@ zenity_text (ZenityData *data, ZenityTextData *text_data)
gtk_text_buffer_get_start_iter (text_buffer, &start_iter);
gtk_text_buffer_get_end_iter (text_buffer, &end_iter);
content = gtk_text_buffer_get_text (text_buffer, &start_iter, &end_iter, TRUE);
- webkit_web_view_load_string (WEBKIT_WEB_VIEW(web_kit), content, "text/html", "UTF-8", NULL);
+ webkit_web_view_load_string (WEBKIT_WEB_VIEW(web_kit), content, "text/html", "UTF-8", "file:///");
g_free (content);
}
bgstack15