aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-encodings.c
diff options
context:
space:
mode:
Diffstat (limited to 'embed/ephy-encodings.c')
-rw-r--r--embed/ephy-encodings.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/embed/ephy-encodings.c b/embed/ephy-encodings.c
index c50ba19c2..c66adde85 100644
--- a/embed/ephy-encodings.c
+++ b/embed/ephy-encodings.c
@@ -457,6 +457,15 @@ ephy_encoding_info_free (EphyEncodingInfo *info)
}
}
+gboolean
+ephy_encoding_info_is_automatic (EphyEncodingInfo *info)
+{
+ g_return_val_if_fail (info != NULL, FALSE);
+
+ return (info->encoding_source < EMBED_ENCODING_PARENT_FORCED)
+ && (info->forced_encoding == NULL || info->forced_encoding[0] == '\0');
+}
+
EphyEncodings *
ephy_encodings_new (void)
{