/* -*- Mode: C; tab-width: 2; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
/*
* Copyright © 2012 Igalia S.L.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2, or (at your option)
* any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#include "config.h"
#include "ephy-about-handler.h"
#include "ephy-embed-shell.h"
#include "ephy-file-helpers.h"
#include "ephy-smaps.h"
#include "ephy-web-app-utils.h"
#include %s
", _("Installed plugins"));
for (p = plugin_list; p; p = p->next) {
WebKitPlugin *plugin = WEBKIT_PLUGIN (p->data);
GList *m, *mime_types;
/* TODO: Enable/disable plugins in WebKit2 */
g_string_append_printf (data_str, "%s
%s
%s: %s" \
"" \
"
");
}
g_string_append (data_str, "");
}
static void
ephy_about_handler_handle_plugins (GString *data_str)
{
g_string_append (data_str, " ",
webkit_plugin_get_name (plugin),
webkit_plugin_get_description (plugin),
_("Enabled"), /*webkit_plugin_get_enabled (plugin)*/ TRUE ? _("Yes") : _("No"),
_("MIME type"), _("Description"), _("Suffixes"));
mime_types = webkit_plugin_get_mime_info_list (plugin);
for (m = mime_types; m; m = m->next) {
WebKitMimeInfo *mime_info = (WebKitMimeInfo *) m->data;
const gchar * const *extensions;
guint i;
g_string_append_printf (data_str, "%s %s %s ");
}
g_string_append (data_str, "%s %s ",
webkit_mime_info_get_mime_type (mime_info),
webkit_mime_info_get_description (mime_info));
extensions = webkit_mime_info_get_extensions (mime_info);
for (i = 0; extensions && extensions[i] != NULL; i++)
g_string_append_printf (data_str, "%s%c", extensions[i],
extensions[i + 1] ? ',' : ' ');
g_string_append (data_str, "
%s
", _("Applications"), css_style, _("Applications"), _("List of installed web applications")); g_string_append (data_str, "%s
\n" \ ""); } static void ephy_about_handler_handle_memory (GString *data_str) { char *memory; static EphySMaps *smaps = NULL; if (!smaps) smaps = ephy_smaps_new (); memory = ephy_smaps_to_html (smaps); if (memory) { g_string_append_printf (data_str, "
" \ "