From 0b5f13ef5a9f6a28812cfa959ad9f5b786312ad2 Mon Sep 17 00:00:00 2001 From: Christian Persch Date: Sat, 11 Oct 2003 17:36:32 +0000 Subject: Encoding menu improvements, part 2: Implement ephy_embed_get_encoding, and 2003-10-11 Christian Persch * embed/ephy-embed.c: (ephy_embed_get_encoding): * embed/ephy-embed.h: * embed/mozilla/EphyWrapper.cpp: * embed/mozilla/EphyWrapper.h: * embed/mozilla/mozilla-embed.cpp: * src/ephy-encoding-menu.c: (ephy_encoding_menu_verb_cb), (update_encoding_menu_cb), (ephy_encoding_menu_set_window): Encoding menu improvements, part 2: Implement ephy_embed_get_encoding, and use it in the menu to indicate the encoding of the loaded page. --- embed/ephy-embed.c | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'embed/ephy-embed.c') diff --git a/embed/ephy-embed.c b/embed/ephy-embed.c index 9b3b31289..145498665 100644 --- a/embed/ephy-embed.c +++ b/embed/ephy-embed.c @@ -574,6 +574,14 @@ ephy_embed_set_encoding (EphyEmbed *embed, return klass->set_encoding (embed, encoding); } +gresult +ephy_embed_get_encoding (EphyEmbed *embed, + char **encoding) +{ + EphyEmbedClass *klass = EPHY_EMBED_GET_CLASS (embed); + return klass->get_encoding (embed, encoding); +} + gresult ephy_embed_print (EphyEmbed *embed, EmbedPrintInfo *info) -- cgit v1.2.3