diff options
Diffstat (limited to 'widgets/menus/gal-view-instance.c')
-rw-r--r-- | widgets/menus/gal-view-instance.c | 12 |
1 files changed, 6 insertions, 6 deletions
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); |