diff options
author | Kernc <kerncece@gmail.com> | 2014-08-30 16:58:15 +0200 |
---|---|---|
committer | Arx Cruz <arxcruz@gnome.org> | 2014-10-21 15:36:39 +0200 |
commit | 8098bb3dd7c6e1742fb0c8ac349ec35333b15a25 (patch) | |
tree | c061dfc19b9192c4c8934dce5d91ae2766e2e235 | |
parent | Added time-remaining support to progress bars (diff) | |
download | zenity-8098bb3dd7c6e1742fb0c8ac349ec35333b15a25.tar.gz zenity-8098bb3dd7c6e1742fb0c8ac349ec35333b15a25.tar.bz2 zenity-8098bb3dd7c6e1742fb0c8ac349ec35333b15a25.zip |
Allow --text-info to load resources from absolute file:// URIs
-rw-r--r-- | src/text.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); } |