From 7f0df03c524f362a5774e0832048f57d760fbf3f Mon Sep 17 00:00:00 2001 From: Xan Lopez Date: Fri, 22 Mar 2013 09:39:19 +0100 Subject: ephy-about-handler: remove non WebKit2 bits --- embed/ephy-about-handler.c | 51 ---------------------------------------------- 1 file changed, 51 deletions(-) (limited to 'embed') diff --git a/embed/ephy-about-handler.c b/embed/ephy-about-handler.c index 9955d36e5..31eb775c7 100644 --- a/embed/ephy-about-handler.c +++ b/embed/ephy-about-handler.c @@ -28,11 +28,7 @@ #include #include -#ifdef HAVE_WEBKIT2 #include -#else -#include -#endif static gchar *css_style = NULL; @@ -55,7 +51,6 @@ read_css_style (void) void _ephy_about_handler_handle_plugins (GString *data_str, GList *plugin_list) { -#ifdef HAVE_WEBKIT2 GList *p; read_css_style (); @@ -103,57 +98,11 @@ _ephy_about_handler_handle_plugins (GString *data_str, GList *plugin_list) } g_string_append (data_str, ""); -#endif } static void ephy_about_handler_handle_plugins (GString *data_str) { -#ifndef HAVE_WEBKIT2 - WebKitWebPluginDatabase* database = webkit_get_web_plugin_database (); - GSList *plugin_list, *p; - - g_string_append_printf (data_str, "%s" \ - "", - _("Installed plugins"), - css_style); - - g_string_append_printf (data_str, "

%s

", _("Installed plugins")); - plugin_list = webkit_web_plugin_database_get_plugins (database); - - for (p = plugin_list; p; p = p->next) { - WebKitWebPlugin *plugin = WEBKIT_WEB_PLUGIN (p->data); - GSList *m, *mime_types; - - g_string_append_printf (data_str, "

%s

%s
%s: %s" \ - "" \ - " ", - webkit_web_plugin_get_name (plugin), - webkit_web_plugin_get_description (plugin), - _("Enabled"), webkit_web_plugin_get_enabled (plugin) ? _("Yes") : _("No"), - _("MIME type"), _("Description"), _("Suffixes")); - - mime_types = webkit_web_plugin_get_mimetypes (plugin); - - for (m = mime_types; m; m = m->next) { - WebKitWebPluginMIMEType *mime_type = (WebKitWebPluginMIMEType*) m->data; - guint i; - - g_string_append_printf (data_str, ""); - } - - g_string_append (data_str, "
%s%s%s
%s%s", - mime_type->name, mime_type->description); - - for (i = 0; mime_type->extensions[i] != NULL; i++) - g_string_append_printf (data_str, "%s%c", mime_type->extensions[i], - mime_type->extensions[i + 1] ? ',' : ' '); - - g_string_append (data_str, "
"); - } - - webkit_web_plugin_database_plugins_list_free (plugin_list); -#endif g_string_append (data_str, ""); } -- cgit v1.2.3