diff options
Diffstat (limited to 'embed/ephy-encodings.c')
-rw-r--r-- | embed/ephy-encodings.c | 20 |
1 files changed, 3 insertions, 17 deletions
diff --git a/embed/ephy-encodings.c b/embed/ephy-encodings.c index 38f70065a..8373ae52c 100644 --- a/embed/ephy-encodings.c +++ b/embed/ephy-encodings.c @@ -264,26 +264,12 @@ ephy_encodings_get_encodings (EphyEncodings *encodings, return list; } -GList * +EphyNode * ephy_encodings_get_detectors (EphyEncodings *encodings) { - GList *list = NULL; - GPtrArray *children; - int i, n_items; - - children = ephy_node_get_children (encodings->priv->detectors); - n_items = children->len; - for (i = 0; i < n_items; i++) - { - EphyNode *kid; - - kid = g_ptr_array_index (children, i); - - list = g_list_prepend (list, kid); - } - ephy_node_thaw (encodings->priv->detectors); + g_return_val_if_fail (EPHY_IS_ENCODINGS (encodings), NULL); - return list; + return encodings->priv->detectors; } EphyNode * |