aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-embed.c
diff options
context:
space:
mode:
authorXan Lopez <xan@src.gnome.org>2007-10-21 23:43:38 +0800
committerXan Lopez <xan@src.gnome.org>2007-10-21 23:43:38 +0800
commita657333db5a36e5377bdb29157d9ac99e86ceefb (patch)
tree860ae63c12931790fbc5499ccc091e36b9f04df5 /embed/ephy-embed.c
parent2be42c2960138a7997af6d8363235c9db90abe0b (diff)
downloadgsoc2013-epiphany-a657333db5a36e5377bdb29157d9ac99e86ceefb.tar
gsoc2013-epiphany-a657333db5a36e5377bdb29157d9ac99e86ceefb.tar.gz
gsoc2013-epiphany-a657333db5a36e5377bdb29157d9ac99e86ceefb.tar.bz2
gsoc2013-epiphany-a657333db5a36e5377bdb29157d9ac99e86ceefb.tar.lz
gsoc2013-epiphany-a657333db5a36e5377bdb29157d9ac99e86ceefb.tar.xz
gsoc2013-epiphany-a657333db5a36e5377bdb29157d9ac99e86ceefb.tar.zst
gsoc2013-epiphany-a657333db5a36e5377bdb29157d9ac99e86ceefb.zip
Move document-type property from EphyTab to EphyEmbed.
svn path=/trunk/; revision=7541
Diffstat (limited to 'embed/ephy-embed.c')
-rw-r--r--embed/ephy-embed.c23
1 files changed, 23 insertions, 0 deletions
diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c
index dd3358078..c9a839e2b 100644
--- a/embed/ephy-embed.c
+++ b/embed/ephy-embed.c
@@ -430,6 +430,14 @@ ephy_embed_base_init (gpointer g_class)
EPHY_TYPE_EMBED_SECURITY_LEVEL,
EPHY_EMBED_STATE_IS_UNKNOWN,
G_PARAM_READABLE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB));
+ g_object_interface_install_property (g_class,
+ g_param_spec_enum ("document-type",
+ "Document Type",
+ "The embed's documen type",
+ EPHY_TYPE_EMBED_DOCUMENT_TYPE,
+ EPHY_EMBED_DOCUMENT_HTML,
+ G_PARAM_READABLE | G_PARAM_STATIC_NAME | G_PARAM_STATIC_NICK | G_PARAM_STATIC_BLURB));
+
initialized = TRUE;
}
@@ -1023,3 +1031,18 @@ ephy_embed_has_modified_forms (EphyEmbed *embed)
EphyEmbedIface *iface = EPHY_EMBED_GET_IFACE (embed);
return iface->has_modified_forms (embed);
}
+
+/**
+ * ephy_embed_get_document_type:
+ * @embed: an #EphyEmbed
+ *
+ * Returns the type of document loaded in the @embed
+ *
+ * Return value: the #EphyEmbedDocumentType
+ **/
+EphyEmbedDocumentType
+ephy_embed_get_document_type (EphyEmbed *embed)
+{
+ EphyEmbedIface *iface = EPHY_EMBED_GET_IFACE (embed);
+ return iface->get_document_type (embed);
+}