From: Christian Dywan Date: Sat, 17 Dec 2011 18:09:27 +0000 (+0100) Subject: Implemment about:widgets page for HTML5 widgets X-Git-Url: https://spindle.queued.net/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d3a065c259432fb155a74fc157c0326c49bce052;p=midori Implemment about:widgets page for HTML5 widgets --- diff --git a/midori/midori-view.c b/midori/midori-view.c index 2ff30bed..b6b1caea 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -3889,6 +3889,51 @@ midori_view_set_uri (MidoriView* view, title, title, view->uri); g_free (title); } + else if (!strcmp (uri, "about:widgets")) + { + static const gchar* widgets[] = { + "", + "

", + "

demo", + "

demo", + "

", + "

", + "", + "

", + "", + "", + "", + "", + "", + "", + "Lorem ipsum doloret sit amet...", + "", + "", + "" + "", + "", + }; + guint i; + GString* demo = g_string_new (""); + g_string_append_printf (demo, + "%s

%s

", uri, uri); + g_string_append (demo, "
"); + katze_assign (view->uri, g_strdup (uri)); + data = g_string_free (demo, FALSE); + } else if (!strcmp (uri, "about:") || !strcmp (uri, "about:version")) { gchar* arguments = g_strjoinv (" ", sokoke_get_argv (NULL));