aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-encodings.c
diff options
context:
space:
mode:
authorChristian Persch <chpe@src.gnome.org>2003-11-30 22:10:15 +0800
committerChristian Persch <chpe@src.gnome.org>2003-11-30 22:10:15 +0800
commit65a418a120a3ae643db7649d71e9dca9722d8088 (patch)
treed7836d146798c49a310fddc8ca5fac1c7e19e811 /embed/ephy-encodings.c
parentdc5345fa3063b7c27c3cffa7745868bae56aa34c (diff)
downloadgsoc2013-epiphany-65a418a120a3ae643db7649d71e9dca9722d8088.tar
gsoc2013-epiphany-65a418a120a3ae643db7649d71e9dca9722d8088.tar.gz
gsoc2013-epiphany-65a418a120a3ae643db7649d71e9dca9722d8088.tar.bz2
gsoc2013-epiphany-65a418a120a3ae643db7649d71e9dca9722d8088.tar.lz
gsoc2013-epiphany-65a418a120a3ae643db7649d71e9dca9722d8088.tar.xz
gsoc2013-epiphany-65a418a120a3ae643db7649d71e9dca9722d8088.tar.zst
gsoc2013-epiphany-65a418a120a3ae643db7649d71e9dca9722d8088.zip
Forgot even more
Diffstat (limited to 'embed/ephy-encodings.c')
-rw-r--r--embed/ephy-encodings.c20
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 *