aboutsummaryrefslogtreecommitdiffstats
path: root/filter/filter-option.c
diff options
context:
space:
mode:
authorLauris Kaplinski <lauris@src.gnome.org>2000-09-08 02:30:30 +0800
committerLauris Kaplinski <lauris@src.gnome.org>2000-09-08 02:30:30 +0800
commit0db696fa4205edb578c56cade278061b4bbe54f2 (patch)
treeb481424b3de3f269586f7658dd463864974bda6c /filter/filter-option.c
parent722a05828e68522a639a04ae0b13855e6b70820b (diff)
downloadgsoc2013-evolution-0db696fa4205edb578c56cade278061b4bbe54f2.tar.gz
gsoc2013-evolution-0db696fa4205edb578c56cade278061b4bbe54f2.tar.zst
gsoc2013-evolution-0db696fa4205edb578c56cade278061b4bbe54f2.zip
Bunch of unicode related changes
svn path=/trunk/; revision=5235
Diffstat (limited to 'filter/filter-option.c')
-rw-r--r--filter/filter-option.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/filter/filter-option.c b/filter/filter-option.c
index bbf1a8ef90..28a57ccf0e 100644
--- a/filter/filter-option.c
+++ b/filter/filter-option.c
@@ -25,6 +25,7 @@
#include "filter-option.h"
#include "filter-part.h"
#include "e-util/e-sexp.h"
+#include "e-util/e-unicode.h"
#define d(x)
@@ -238,11 +239,14 @@ static GtkWidget *get_widget(FilterElement *fe)
GList *l = fo->options;
struct _filter_option *op;
int index = 0, current=0;
+ gchar *s;
menu = (GtkMenu *)gtk_menu_new();
while (l) {
op = l->data;
- item = (GtkMenuItem *)gtk_menu_item_new_with_label(op->title);
+ s = e_utf8_to_gtk_string ((GtkWidget *) menu, op->title);
+ item = (GtkMenuItem *)gtk_menu_item_new_with_label(s);
+ g_free (s);
gtk_object_set_data((GtkObject *)item, "option", op);
gtk_signal_connect((GtkObject *)item, "activate", option_activate, fo);
gtk_menu_append(menu, (GtkWidget *)item);