aboutsummaryrefslogtreecommitdiffstats
path: root/embed
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
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')
-rw-r--r--embed/ephy-encodings.c20
-rw-r--r--embed/ephy-encodings.h2
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);