[evolution-patches] gal-view e_utf8_to_locale() patch



shouldn't be using that function anymore

Jeff

-- 
Jeffrey Stedfast
Evolution Hacker - Ximian, Inc.
fejj ximian com  - www.ximian.com
? gal-view-e-utf8.patch
Index: gal-view-menus.c
===================================================================
RCS file: /cvs/gnome/evolution/widgets/menus/gal-view-menus.c,v
retrieving revision 1.39
diff -u -r1.39 gal-view-menus.c
--- gal-view-menus.c	10 Apr 2003 15:22:13 -0000	1.39
+++ gal-view-menus.c	23 Apr 2003 19:54:16 -0000
@@ -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 @@
         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 @@
 		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);


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]