aboutsummaryrefslogtreecommitdiffstats
path: root/e-util
diff options
context:
space:
mode:
authorLauris Kaplinski <lauris@src.gnome.org>2000-08-25 12:31:13 +0800
committerLauris Kaplinski <lauris@src.gnome.org>2000-08-25 12:31:13 +0800
commit81f994a359a8f70efa3ffcca2004233387815b06 (patch)
treed2051c453ec0d6b4e88f5a730cb593b7605aa42e /e-util
parent6252ffa2f5708c65bba754f74cda708558d733a7 (diff)
downloadgsoc2013-evolution-81f994a359a8f70efa3ffcca2004233387815b06.tar
gsoc2013-evolution-81f994a359a8f70efa3ffcca2004233387815b06.tar.gz
gsoc2013-evolution-81f994a359a8f70efa3ffcca2004233387815b06.tar.bz2
gsoc2013-evolution-81f994a359a8f70efa3ffcca2004233387815b06.tar.lz
gsoc2013-evolution-81f994a359a8f70efa3ffcca2004233387815b06.tar.xz
gsoc2013-evolution-81f994a359a8f70efa3ffcca2004233387815b06.tar.zst
gsoc2013-evolution-81f994a359a8f70efa3ffcca2004233387815b06.zip
More UTF-8 handling
svn path=/trunk/; revision=5032
Diffstat (limited to 'e-util')
-rw-r--r--e-util/ChangeLog5
-rw-r--r--e-util/e-unicode.c17
-rw-r--r--e-util/e-unicode.h2
3 files changed, 24 insertions, 0 deletions
diff --git a/e-util/ChangeLog b/e-util/ChangeLog
index 3e9465814b..cb5d4f0a5e 100644
--- a/e-util/ChangeLog
+++ b/e-util/ChangeLog
@@ -1,3 +1,8 @@
+2000-08-24 Lauris Kaplinski <lauris@helixcode.com>
+
+ * e-unicode.h:
+ * e-unicode.c (e_utf8_gtk_menu_item_new_with_label): New wrapper
+
2000-08-23 Lauris Kaplinski <lauris@helixcode.com>
* e-unicode.h:
diff --git a/e-util/e-unicode.c b/e-util/e-unicode.c
index 8612048e21..e9b87ca64d 100644
--- a/e-util/e-unicode.c
+++ b/e-util/e-unicode.c
@@ -199,3 +199,20 @@ e_utf8_gtk_entry_set_text (GtkEntry *entry, const gchar *text)
if (s) g_free (s);
}
+GtkWidget *
+e_utf8_gtk_menu_item_new_with_label (const gchar *label)
+{
+ GtkWidget *w;
+ gchar *s;
+
+ if (!label) return NULL;
+
+ s = e_utf8_to_gtk_string (NULL, label);
+ w = gtk_menu_item_new_with_label (s);
+
+ if (s) g_free (s);
+
+ return w;
+}
+
+
diff --git a/e-util/e-unicode.h b/e-util/e-unicode.h
index 7bd46397e4..5df2932ac4 100644
--- a/e-util/e-unicode.h
+++ b/e-util/e-unicode.h
@@ -29,5 +29,7 @@ void e_utf8_gtk_entry_set_text (GtkEntry *entry, const gchar *text);
gchar *e_utf8_gtk_editable_get_chars (GtkEditable *editable, gint start, gint end);
+GtkWidget *e_utf8_gtk_menu_item_new_with_label (const gchar *label);
+
#endif