From 60c9f1fbdec489e4ff38536ad260cf20ca31dfa1 Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Fri, 18 Mar 2011 00:43:38 +0000 Subject: add some warnings to annoy people so that they might help push the lack of useful properties. --- xxxterm.c | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/xxxterm.c b/xxxterm.c index 35e9774..beadcd6 100644 --- a/xxxterm.c +++ b/xxxterm.c @@ -6945,10 +6945,11 @@ stop_cb(GtkWidget *w, struct tab *t) void setup_webkit(struct tab *t) { - if (is_g_object_setting(G_OBJECT(t->settings), - "enable-dns-prefetching")) + if (is_g_object_setting(G_OBJECT(t->settings), "enable-dns-prefetching")) g_object_set(G_OBJECT(t->settings), "enable-dns-prefetching", FALSE, (char *)NULL); + else + warnx("webkit does not have \"enable-dns-prefetching\" property"); g_object_set(G_OBJECT(t->settings), "user-agent", t->user_agent, (char *)NULL); g_object_set(G_OBJECT(t->settings), @@ -8282,10 +8283,11 @@ main(int argc, char *argv[]) /* cookies */ session = webkit_get_default_session(); /* XXX ssl-priority property not quite available yet */ - if (is_g_object_setting(G_OBJECT(session), - "ssl-priority")) + if (is_g_object_setting(G_OBJECT(session), "ssl-priority")) g_object_set(G_OBJECT(session), "ssl-priority", priority, (char *)NULL); + else + warnx("session does not have \"ssl-priority\" property"); setup_cookies(); /* certs */ -- cgit 1.4.1-2-gfad0