diff options
Diffstat (limited to 'embed')
-rw-r--r-- | embed/ephy-encodings.c | 20 | ||||
-rw-r--r-- | embed/ephy-encodings.h | 2 |
2 files changed, 4 insertions, 18 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 * diff --git a/embed/ephy-encodings.h b/embed/ephy-encodings.h index b7b15f828..6832b160c 100644 --- a/embed/ephy-encodings.h +++ b/embed/ephy-encodings.h @@ -137,7 +137,7 @@ GList *ephy_encodings_get_encodings (EphyEncodings *encodings, EphyNode *ephy_encodings_get_all (EphyEncodings *encodings); -GList *ephy_encodings_get_detectors (EphyEncodings *encodings); +EphyNode *ephy_encodings_get_detectors (EphyEncodings *encodings); void ephy_encodings_add_recent (EphyEncodings *encodings, const char *code); |