From 81f994a359a8f70efa3ffcca2004233387815b06 Mon Sep 17 00:00:00 2001 From: Lauris Kaplinski Date: Fri, 25 Aug 2000 04:31:13 +0000 Subject: More UTF-8 handling svn path=/trunk/; revision=5032 --- widgets/misc/e-unicode.c | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'widgets/misc/e-unicode.c') diff --git a/widgets/misc/e-unicode.c b/widgets/misc/e-unicode.c index 8612048e21..e9b87ca64d 100644 --- a/widgets/misc/e-unicode.c +++ b/widgets/misc/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; +} + + -- cgit v1.2.3