diff options
author | Chyla Zbigniew <chyla@src.gnome.org> | 2001-09-05 05:22:11 +0800 |
---|---|---|
committer | Chyla Zbigniew <chyla@src.gnome.org> | 2001-09-05 05:22:11 +0800 |
commit | b76d2415d6d7e2f9cbc2880ee4948b37fa469255 (patch) | |
tree | 977b6e20ad6dc5af19260096c1b1fa17b96de9d6 /widgets/menus | |
parent | 012f7f454a31d5430eae0d4372b49f537ec65beb (diff) | |
download | gsoc2013-evolution-b76d2415d6d7e2f9cbc2880ee4948b37fa469255.tar gsoc2013-evolution-b76d2415d6d7e2f9cbc2880ee4948b37fa469255.tar.gz gsoc2013-evolution-b76d2415d6d7e2f9cbc2880ee4948b37fa469255.tar.bz2 gsoc2013-evolution-b76d2415d6d7e2f9cbc2880ee4948b37fa469255.tar.lz gsoc2013-evolution-b76d2415d6d7e2f9cbc2880ee4948b37fa469255.tar.xz gsoc2013-evolution-b76d2415d6d7e2f9cbc2880ee4948b37fa469255.tar.zst gsoc2013-evolution-b76d2415d6d7e2f9cbc2880ee4948b37fa469255.zip |
Fixes #2465
* menus/gal-view-menus.c (build_menus):
Encode the label using bonobo_ui_util_encode_str and set "label"
attribute, not "_label".
I have no idea what the previous code was trying to do but it was
definitely wrong.
svn path=/trunk/; revision=12601
Diffstat (limited to 'widgets/menus')
-rw-r--r-- | widgets/menus/gal-view-menus.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/widgets/menus/gal-view-menus.c b/widgets/menus/gal-view-menus.c index 58d13d1545..329ecd890a 100644 --- a/widgets/menus/gal-view-menus.c +++ b/widgets/menus/gal-view-menus.c @@ -222,7 +222,7 @@ build_menus(GalViewMenus *menus) menus->priv->listenerClosures = e_list_new (NULL, closure_free, menus); for (i = 0; i < length; i++) { - char *label; + char *label, *encoded_label; GalViewCollectionItem *item = gal_view_collection_get_view_item(collection, i); ListenerClosure *closure; @@ -234,9 +234,9 @@ build_menus(GalViewMenus *menus) /* bonobo displays this string so it must be in locale */ label = e_utf8_to_locale_string(item->title); - /* All labels are bonobo_ui_util_decode_str()ed, - * so even translated label must be set with _label */ - bonobo_ui_node_set_attr(menuitem, "_label", label); + encoded_label = bonobo_ui_util_encode_str (label); + bonobo_ui_node_set_attr(menuitem, "label", encoded_label); + g_free (encoded_label); g_free(label); closure = g_new (ListenerClosure, 1); |