aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/misc
diff options
context:
space:
mode:
authorLauris Kaplinski <lauris@src.gnome.org>2001-02-08 03:57:19 +0800
committerLauris Kaplinski <lauris@src.gnome.org>2001-02-08 03:57:19 +0800
commitde975c303ae18d449e5f25d692afdc9bfc52d1bd (patch)
treea1f7f853044ee3ab456825f3547f985b60bc2013 /widgets/misc
parent187d85dbf83254285be14b66898ae7ee584d875c (diff)
downloadgsoc2013-evolution-de975c303ae18d449e5f25d692afdc9bfc52d1bd.tar
gsoc2013-evolution-de975c303ae18d449e5f25d692afdc9bfc52d1bd.tar.gz
gsoc2013-evolution-de975c303ae18d449e5f25d692afdc9bfc52d1bd.tar.bz2
gsoc2013-evolution-de975c303ae18d449e5f25d692afdc9bfc52d1bd.tar.lz
gsoc2013-evolution-de975c303ae18d449e5f25d692afdc9bfc52d1bd.tar.xz
gsoc2013-evolution-de975c303ae18d449e5f25d692afdc9bfc52d1bd.tar.zst
gsoc2013-evolution-de975c303ae18d449e5f25d692afdc9bfc52d1bd.zip
Added Akira's japanese etc. encodings to e-font
svn path=/trunk/; revision=8056
Diffstat (limited to 'widgets/misc')
-rw-r--r--widgets/misc/e-unicode.c15
1 files changed, 10 insertions, 5 deletions
diff --git a/widgets/misc/e-unicode.c b/widgets/misc/e-unicode.c
index 0cb889e323..13a700489f 100644
--- a/widgets/misc/e-unicode.c
+++ b/widgets/misc/e-unicode.c
@@ -16,6 +16,7 @@
#include <iconv.h>
#include <gdk/gdk.h>
#include <gdk/gdkx.h>
+#include <gdk/gdkkeysyms.h>
#include "e-unicode.h"
#include "e-font.h"
@@ -186,15 +187,19 @@ e_utf8_from_gtk_event_key (GtkWidget *widget, guint keyval, const gchar *string)
gchar *utf;
gint unilen;
- unival = gdk_keyval_to_unicode (keyval);
+ if (keyval == GDK_VoidSymbol) {
+ utf = e_utf8_from_gtk_string (widget, string);
+ } else {
+ unival = gdk_keyval_to_unicode (keyval);
- if (unival < ' ') return NULL;
+ if (unival < ' ') return NULL;
- utf = g_new (gchar, 7);
+ utf = g_new (gchar, 7);
- unilen = g_unichar_to_utf8 (unival, utf);
+ unilen = g_unichar_to_utf8 (unival, utf);
- utf[unilen] = '\0';
+ utf[unilen] = '\0';
+ }
return utf;
}