aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChyla Zbigniew <chyla@src.gnome.org>2001-09-05 05:22:11 +0800
committerChyla Zbigniew <chyla@src.gnome.org>2001-09-05 05:22:11 +0800
commitb76d2415d6d7e2f9cbc2880ee4948b37fa469255 (patch)
tree977b6e20ad6dc5af19260096c1b1fa17b96de9d6
parent012f7f454a31d5430eae0d4372b49f537ec65beb (diff)
downloadgsoc2013-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
-rw-r--r--widgets/ChangeLog10
-rw-r--r--widgets/menus/gal-view-menus.c8
2 files changed, 14 insertions, 4 deletions
diff --git a/widgets/ChangeLog b/widgets/ChangeLog
index fb5ec1a1ac..b24092d43b 100644
--- a/widgets/ChangeLog
+++ b/widgets/ChangeLog
@@ -1,3 +1,13 @@
+2001-08-26 Zbigniew Chyla <cyba@gnome.pl>
+
+ 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.
+
2001-08-27 Ettore Perazzoli <ettore@ximian.com>
* e-timezone-dialog/e-timezone-dialog.h
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);