From d3a065c259432fb155a74fc157c0326c49bce052 Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Sat, 17 Dec 2011 19:09:27 +0100 Subject: [PATCH] Implemment about:widgets page for HTML5 widgets --- midori/midori-view.c | 45 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) 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)); -- 2.39.5