From 65a418a120a3ae643db7649d71e9dca9722d8088 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sun, 30 Nov 2003 14:10:15 +0000 Subject: Forgot even more --- embed/ephy-encodings.c | 20 +++----------------- 1 file changed, 3 insertions(+), 17 deletions(-) (limited to 'embed/ephy-encodings.c') 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 * -- cgit v1.2.3