From accb60cbda9f52cf836fd4c9f13ec05979bf6a0a Mon Sep 17 00:00:00 2001 From: Christopher James Lahey Date: Tue, 10 Apr 2001 23:33:39 +0000 Subject: Translate the title as we read it. 2001-04-10 Christopher James Lahey * gal-view-collection.c (load_single_file): Translate the title as we read it. svn path=/trunk/; revision=9217 --- widgets/menus/gal-view-collection.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/widgets/menus/gal-view-collection.c b/widgets/menus/gal-view-collection.c index 36a0049a1f..1935688408 100644 --- a/widgets/menus/gal-view-collection.c +++ b/widgets/menus/gal-view-collection.c @@ -8,6 +8,8 @@ * (C) 1999, 2000 Helix Code, Inc. */ #include + +#include #include #include #include @@ -16,6 +18,7 @@ #include #include #include +#include #include "gal-view-collection.h" #define GVC_CLASS(e) ((GalViewCollectionClass *)((GtkObject *)e)->klass) @@ -236,10 +239,11 @@ load_single_file (GalViewCollection *collection, item->changed = FALSE; item->built_in = !local; item->id = e_xml_get_string_prop_by_name(node, "id"); - item->title = e_xml_get_string_prop_by_name(node, "title"); item->filename = e_xml_get_string_prop_by_name(node, "filename"); + item->title = e_xml_get_translated_utf8_string_prop_by_name(node, "title"); item->type = e_xml_get_string_prop_by_name(node, "type"); item->collection = collection; + if (item->filename) { GalViewFactory *factory; GList *factories; -- cgit v1.2.3