diff options
Diffstat (limited to 'e-util/e-unicode.c')
-rw-r--r-- | e-util/e-unicode.c | 17 |
1 files changed, 17 insertions, 0 deletions
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; +} + + |