From 646455c0f94ac047b3ed44dbd7e796f746451700 Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Sun, 3 Jun 2007 02:45:22 +0000 Subject: Fix compilation warnings in widgets folder (#441014). svn path=/trunk/; revision=33626 --- widgets/menus/gal-view-instance.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'widgets/menus/gal-view-instance.c') diff --git a/widgets/menus/gal-view-instance.c b/widgets/menus/gal-view-instance.c index 821a299afb..521da6a6b3 100644 --- a/widgets/menus/gal-view-instance.c +++ b/widgets/menus/gal-view-instance.c @@ -90,14 +90,14 @@ save_current_view (GalViewInstance *instance) xmlDoc *doc; xmlNode *root; - doc = xmlNewDoc("1.0"); - root = xmlNewNode (NULL, "GalViewCurrentView"); + doc = xmlNewDoc((const unsigned char *)"1.0"); + root = xmlNewNode (NULL, (const unsigned char *)"GalViewCurrentView"); xmlDocSetRootElement(doc, root); if (instance->current_id) - e_xml_set_string_prop_by_name (root, "current_view", instance->current_id); + e_xml_set_string_prop_by_name (root, (const unsigned char *)"current_view", instance->current_id); if (instance->current_type) - e_xml_set_string_prop_by_name (root, "current_view_type", instance->current_type); + e_xml_set_string_prop_by_name (root, (const unsigned char *)"current_view_type", instance->current_type); if (e_xml_save_file (instance->current_view_filename, doc) == -1) g_warning ("Unable to save view to %s - %s", instance->current_view_filename, g_strerror(errno)); @@ -278,7 +278,7 @@ load_current_view (GalViewInstance *instance) } root = xmlDocGetRootElement(doc); - instance->current_id = e_xml_get_string_prop_by_name_with_default (root, "current_view", NULL); + instance->current_id = e_xml_get_string_prop_by_name_with_default (root, (const unsigned char *)"current_view", NULL); if (instance->current_id != NULL) { int index = gal_view_collection_get_view_index_by_id (instance->collection, @@ -292,7 +292,7 @@ load_current_view (GalViewInstance *instance) } if (view == NULL) { char *type; - type = e_xml_get_string_prop_by_name_with_default (root, "current_view_type", NULL); + type = e_xml_get_string_prop_by_name_with_default (root, (const unsigned char *)"current_view_type", NULL); view = gal_view_collection_load_view_from_file (instance->collection, type, instance->custom_filename); -- cgit v1.2.3