epiphany-extensions r1666 - trunk/extensions/error-viewer
- From: diegoe svn gnome org
- To: svn-commits-list gnome org
- Subject: epiphany-extensions r1666 - trunk/extensions/error-viewer
- Date: Wed, 30 Jan 2008 18:17:32 +0000 (GMT)
Author: diegoe
Date: Wed Jan 30 18:17:31 2008
New Revision: 1666
URL: http://svn.gnome.org/viewvc/epiphany-extensions?rev=1666&view=rev
Log:
Update error-viewer extension to work with ephy trunk. Fixes #513206.
Modified:
trunk/extensions/error-viewer/ephy-error-viewer-extension.c
Modified: trunk/extensions/error-viewer/ephy-error-viewer-extension.c
==============================================================================
--- trunk/extensions/error-viewer/ephy-error-viewer-extension.c (original)
+++ trunk/extensions/error-viewer/ephy-error-viewer-extension.c Wed Jan 30 18:17:31 2008
@@ -273,7 +273,7 @@
EphyEmbed *embed;
GtkAction *action1;
GtkAction *action2; /* You can tell I didn't want to think... */
- char *content_type;
+ EphyEmbedDocumentType content_type;
GValue sensitive = { 0, };
g_return_if_fail (EPHY_IS_WINDOW (window));
@@ -299,19 +299,16 @@
return;
}
- content_type = mozilla_get_content_type (embed);
+ content_type = ephy_embed_get_document_type (embed);
if (content_type &&
- ((strcmp (content_type, "text/html") == 0)
- || (strcmp (content_type, "application/xhtml+xml") == 0)
- || (strcmp (content_type, "application/xml") == 0)
- || (strcmp (content_type, "text/xml") == 0)))
+ ((content_type == EPHY_EMBED_DOCUMENT_HTML)
+ || (content_type == EPHY_EMBED_DOCUMENT_XML))
+ )
{
g_value_set_boolean (&sensitive, TRUE);
}
- g_free (content_type);
-
g_object_set_property (G_OBJECT (action1), "sensitive", &sensitive);
g_object_set_property (G_OBJECT (action2), "sensitive", &sensitive);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]