From cbec9bcb7466b793103426bdb66c88c9fcdc911b Mon Sep 17 00:00:00 2001 From: Christian Dywan Date: Wed, 4 Apr 2012 22:55:23 +0200 Subject: [PATCH] Include geolocation info in about:version --- midori/midori-view.c | 42 +++++++++++++++++++++++++++++++++++++++--- 1 file changed, 39 insertions(+), 3 deletions(-) diff --git a/midori/midori-view.c b/midori/midori-view.c index 52176054..65d53f25 100644 --- a/midori/midori-view.c +++ b/midori/midori-view.c @@ -3828,7 +3828,43 @@ list_netscape_plugins (JSContextRef js_context) return g_strdup (""); } -static gchar* +static const gchar* +list_geolocation () +{ + return + "" + "" + ""; +} + static gchar* list_video_formats (JSContextRef js_context) { @@ -4155,7 +4191,7 @@ midori_view_set_uri (MidoriView* view, "Identification%s" "Video Formats%s" "" - "%s" + "%s %s" "", _("Version numbers in brackets show the version used at runtime."), command_line, @@ -4182,7 +4218,7 @@ midori_view_set_uri (MidoriView* view, "Sockets", #endif platform, sys_name, architecture ? architecture : "", ident, - video_formats, netscape_plugins); + video_formats, list_geolocation (), netscape_plugins); g_free (command_line); g_free (arguments); g_free (ident);