aboutsummaryrefslogtreecommitdiffstats
path: root/embed/ephy-encodings.h
diff options
context:
space:
mode:
authorChristian Persch <chpe@cvs.gnome.org>2004-01-06 22:36:23 +0800
committerChristian Persch <chpe@src.gnome.org>2004-01-06 22:36:23 +0800
commitfe2f4ed250c08dc3a4f7b2816fcf6894f446f1ee (patch)
treef6381d82b2f5f2736ecba8e5c0e8c4d8757b0c01 /embed/ephy-encodings.h
parent1158a826cc4f3b9d71745bff312f25e0122ec445 (diff)
downloadgsoc2013-epiphany-fe2f4ed250c08dc3a4f7b2816fcf6894f446f1ee.tar
gsoc2013-epiphany-fe2f4ed250c08dc3a4f7b2816fcf6894f446f1ee.tar.gz
gsoc2013-epiphany-fe2f4ed250c08dc3a4f7b2816fcf6894f446f1ee.tar.bz2
gsoc2013-epiphany-fe2f4ed250c08dc3a4f7b2816fcf6894f446f1ee.tar.lz
gsoc2013-epiphany-fe2f4ed250c08dc3a4f7b2816fcf6894f446f1ee.tar.xz
gsoc2013-epiphany-fe2f4ed250c08dc3a4f7b2816fcf6894f446f1ee.tar.zst
gsoc2013-epiphany-fe2f4ed250c08dc3a4f7b2816fcf6894f446f1ee.zip
Behave better when the encoding used on the page is unknown to us.
2004-01-06 Christian Persch <chpe@cvs.gnome.org> * embed/ephy-encodings.c: (add_encoding), (ephy_encodings_get_node), (ephy_encodings_add_recent), (ephy_encodings_get_recent), (ephy_encodings_init): * embed/ephy-encodings.h: * src/ephy-encoding-dialog.c: (sync_embed_cb): * src/ephy-encoding-menu.c: (update_encoding_menu_cb), (add_action), (ephy_encoding_menu_set_window): * src/prefs-dialog.c: (create_node_combo): Behave better when the encoding used on the page is unknown to us. Previously we skipped important steps in menu building, resulting in incorrect encoding indicator. Now, we dynamically add an entry with name "Unknown" to our menu. Also add back some rarely used encodings (us-ascii, UTF-16*, UTF-32*) to our known encodings repertoire.
Diffstat (limited to 'embed/ephy-encodings.h')
-rw-r--r--embed/ephy-encodings.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/embed/ephy-encodings.h b/embed/ephy-encodings.h
index 9a565344a..6ab26cfa4 100644
--- a/embed/ephy-encodings.h
+++ b/embed/ephy-encodings.h
@@ -130,7 +130,8 @@ GType ephy_encodings_get_type (void);
EphyEncodings *ephy_encodings_new (void);
EphyNode *ephy_encodings_get_node (EphyEncodings *encodings,
- const char *code);
+ const char *code,
+ gboolean add_if_not_found);
GList *ephy_encodings_get_encodings (EphyEncodings *encodings,
EphyLanguageGroup group_mask);