aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/menus/gal-view-menus.c
diff options
context:
space:
mode:
authorJeffrey Stedfast <fejj@ximian.com>2003-04-29 01:48:02 +0800
committerJeffrey Stedfast <fejj@src.gnome.org>2003-04-29 01:48:02 +0800
commit8910fc09d977dc9ae58227aad6ff7cc70a1d93bc (patch)
treec433a94da5ffb0ba45ccccd04479b8af9f6f3523 /widgets/menus/gal-view-menus.c
parentbb0d02c04bb2c09e004ba5bad2159cc3cb219672 (diff)
downloadgsoc2013-evolution-8910fc09d977dc9ae58227aad6ff7cc70a1d93bc.tar
gsoc2013-evolution-8910fc09d977dc9ae58227aad6ff7cc70a1d93bc.tar.gz
gsoc2013-evolution-8910fc09d977dc9ae58227aad6ff7cc70a1d93bc.tar.bz2
gsoc2013-evolution-8910fc09d977dc9ae58227aad6ff7cc70a1d93bc.tar.lz
gsoc2013-evolution-8910fc09d977dc9ae58227aad6ff7cc70a1d93bc.tar.xz
gsoc2013-evolution-8910fc09d977dc9ae58227aad6ff7cc70a1d93bc.tar.zst
gsoc2013-evolution-8910fc09d977dc9ae58227aad6ff7cc70a1d93bc.zip
Don't convert the label charset from UTF-8 into the locale charset.
2003-04-23 Jeffrey Stedfast <fejj@ximian.com> * menus/gal-view-menus.c (build_menus): Don't convert the label charset from UTF-8 into the locale charset. svn path=/trunk/; revision=20985
Diffstat (limited to 'widgets/menus/gal-view-menus.c')
-rw-r--r--widgets/menus/gal-view-menus.c12
1 files changed, 4 insertions, 8 deletions
diff --git a/widgets/menus/gal-view-menus.c b/widgets/menus/gal-view-menus.c
index be617208bd..39f4db3366 100644
--- a/widgets/menus/gal-view-menus.c
+++ b/widgets/menus/gal-view-menus.c
@@ -22,7 +22,6 @@
#include <gal/util/e-util.h>
#include <gal/util/e-xml-utils.h>
#include <gal/menus/gal-define-views-dialog.h>
-#include <gal/widgets/e-unicode.h>
#include <bonobo/bonobo-ui-util.h>
#include <e-util/e-list.h>
@@ -295,10 +294,10 @@ build_menus(GalViewMenus *menus)
menus->priv->listenerClosures = e_list_new (closure_copy, closure_free, menus);
for (i = 0; i < length; i++) {
- char *label, *encoded_label;
GalViewCollectionItem *item = gal_view_collection_get_view_item(collection, i);
ListenerClosure *closure;
-
+ char *label;
+
menuitem = bonobo_ui_node_new_child(submenu, "menuitem");
bonobo_ui_node_set_attr(menuitem, "name", item->id);
bonobo_ui_node_set_attr(menuitem, "id", item->id);
@@ -309,11 +308,8 @@ build_menus(GalViewMenus *menus)
bonobo_ui_node_set_attr(command, "name", item->id);
bonobo_ui_node_set_attr(command, "group", "GalViewMenus");
- /* bonobo displays this string so it must be in locale */
- label = e_utf8_to_locale_string(item->title);
- encoded_label = bonobo_ui_util_encode_str (label);
- bonobo_ui_node_set_attr(menuitem, "label", encoded_label);
- g_free (encoded_label);
+ label = bonobo_ui_util_encode_str (item->title);
+ bonobo_ui_node_set_attr(menuitem, "label", label);
g_free (label);
closure = g_new (ListenerClosure, 1);