aboutsummaryrefslogtreecommitdiffstats
path: root/embed/mozilla/GtkNSSClientAuthDialogs.cpp
diff options
context:
space:
mode:
authorMarco Pesenti Gritti <marco@src.gnome.org>2004-03-17 17:02:38 +0800
committerMarco Pesenti Gritti <marco@src.gnome.org>2004-03-17 17:02:38 +0800
commitdbdcf80ba8e559236f9937aaafba1d14b1cee46e (patch)
treed5711b633861b6ffc879fbbce08ea1364e9a64c9 /embed/mozilla/GtkNSSClientAuthDialogs.cpp
parent9765279aba4cbed66b182e91eaa18e8225305a18 (diff)
downloadgsoc2013-epiphany-dbdcf80ba8e559236f9937aaafba1d14b1cee46e.tar
gsoc2013-epiphany-dbdcf80ba8e559236f9937aaafba1d14b1cee46e.tar.gz
gsoc2013-epiphany-dbdcf80ba8e559236f9937aaafba1d14b1cee46e.tar.bz2
gsoc2013-epiphany-dbdcf80ba8e559236f9937aaafba1d14b1cee46e.tar.lz
gsoc2013-epiphany-dbdcf80ba8e559236f9937aaafba1d14b1cee46e.tar.xz
gsoc2013-epiphany-dbdcf80ba8e559236f9937aaafba1d14b1cee46e.tar.zst
gsoc2013-epiphany-dbdcf80ba8e559236f9937aaafba1d14b1cee46e.zip
merging pre-gnome-2-8 branch
Diffstat (limited to 'embed/mozilla/GtkNSSClientAuthDialogs.cpp')
-rw-r--r--embed/mozilla/GtkNSSClientAuthDialogs.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/embed/mozilla/GtkNSSClientAuthDialogs.cpp b/embed/mozilla/GtkNSSClientAuthDialogs.cpp
index 141a7ca18..c6929b979 100644
--- a/embed/mozilla/GtkNSSClientAuthDialogs.cpp
+++ b/embed/mozilla/GtkNSSClientAuthDialogs.cpp
@@ -16,6 +16,8 @@
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ *
+ * $Id$
*/
#ifdef HAVE_CONFIG_H
@@ -145,7 +147,7 @@ option_menu_changed_cb (GtkOptionMenu *optionmenu, GtkTextView *textview)
details = (PRUnichar*)g_object_get_data (G_OBJECT (item), "details");
g_return_if_fail (details);
- const nsACString &certnick = NS_ConvertUCS2toUTF8(details);
+ const nsACString &certnick = NS_ConvertUTF16toUTF8(details);
gtk_text_buffer_set_text (buffer, PromiseFlatCString(certnick).get(), -1);
}
@@ -217,7 +219,7 @@ GtkNSSClientAuthDialogs::ChooseCertificate (nsIInterfaceRequestor *ctx,
gtk_box_pack_start (GTK_BOX (vbox), label, FALSE, FALSE, 0);
- const nsACString &utf8_cn = NS_ConvertUCS2toUTF8(cn);
+ const nsACString &utf8_cn = NS_ConvertUTF16toUTF8(cn);
tt_cn = g_strdup_printf ("\"<tt>%s</tt>\"",
PromiseFlatCString(utf8_cn).get());
@@ -236,8 +238,8 @@ GtkNSSClientAuthDialogs::ChooseCertificate (nsIInterfaceRequestor *ctx,
store = gtk_list_store_new (2, G_TYPE_STRING, G_TYPE_STRING);
for (i = 0; i < count; i++)
{
- const nsACString &certnick = NS_ConvertUCS2toUTF8(certNickList[i]);
- const nsACString &certdetail = NS_ConvertUCS2toUTF8(certDetailsList[i]);
+ const nsACString &certnick = NS_ConvertUTF16toUTF8(certNickList[i]);
+ const nsACString &certdetail = NS_ConvertUTF16toUTF8(certDetailsList[i]);
gtk_list_store_append (store, &iter);
gtk_list_store_set (store, &iter,
@@ -266,7 +268,7 @@ GtkNSSClientAuthDialogs::ChooseCertificate (nsIInterfaceRequestor *ctx,
for (i = 0 ; i < count ; i++)
{
- const nsACString &certnick = NS_ConvertUCS2toUTF8(certNickList[i]);
+ const nsACString &certnick = NS_ConvertUTF16toUTF8(certNickList[i]);
GtkWidget *item = gtk_menu_item_new_with_label (PromiseFlatCString(certnick).get());
gtk_menu_shell_append (GTK_MENU_SHELL (menu), item);
g_object_set_data (G_OBJECT (item), "details", (void*)certDetailsList[i]);