aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-column-specification.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-05-27 23:13:25 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-05-29 00:13:23 +0800
commitfad4af8a3d4c6f50f7bcceca8d545eb17d6fd056 (patch)
treeae78be371695c3dc18847b87d3f014f985aa3a40 /widgets/table/e-table-column-specification.c
parent6f5464f34ceec9e5701e3e3e651a40f9e6b3a072 (diff)
downloadgsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.gz
gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.zst
gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.zip
Prefer GLib basic types over C types.
Diffstat (limited to 'widgets/table/e-table-column-specification.c')
-rw-r--r--widgets/table/e-table-column-specification.c62
1 files changed, 31 insertions, 31 deletions
diff --git a/widgets/table/e-table-column-specification.c b/widgets/table/e-table-column-specification.c
index c48451587f..0f6acd7fc6 100644
--- a/widgets/table/e-table-column-specification.c
+++ b/widgets/table/e-table-column-specification.c
@@ -106,21 +106,21 @@ e_table_column_specification_load_from_node (ETableColumnSpecification *etcs,
{
free_strings(etcs);
- etcs->model_col = e_xml_get_integer_prop_by_name (node, (const unsigned char *)"model_col");
- etcs->compare_col = e_xml_get_integer_prop_by_name_with_default (node, (const unsigned char *)"compare_col", etcs->model_col);
- etcs->title = e_xml_get_string_prop_by_name (node, (const unsigned char *)"_title");
- etcs->pixbuf = e_xml_get_string_prop_by_name (node, (const unsigned char *)"pixbuf");
-
- etcs->expansion = e_xml_get_double_prop_by_name (node, (const unsigned char *)"expansion");
- etcs->minimum_width = e_xml_get_integer_prop_by_name (node, (const unsigned char *)"minimum_width");
- etcs->resizable = e_xml_get_bool_prop_by_name (node, (const unsigned char *)"resizable");
- etcs->disabled = e_xml_get_bool_prop_by_name (node, (const unsigned char *)"disabled");
-
- etcs->cell = e_xml_get_string_prop_by_name (node, (const unsigned char *)"cell");
- etcs->compare = e_xml_get_string_prop_by_name (node, (const unsigned char *)"compare");
- etcs->search = e_xml_get_string_prop_by_name (node, (const unsigned char *)"search");
- etcs->sortable = e_xml_get_string_prop_by_name (node, (const unsigned char *)"sortable");
- etcs->priority = e_xml_get_integer_prop_by_name_with_default (node, (const unsigned char *)"priority", 0);
+ etcs->model_col = e_xml_get_integer_prop_by_name (node, (const guchar *)"model_col");
+ etcs->compare_col = e_xml_get_integer_prop_by_name_with_default (node, (const guchar *)"compare_col", etcs->model_col);
+ etcs->title = e_xml_get_string_prop_by_name (node, (const guchar *)"_title");
+ etcs->pixbuf = e_xml_get_string_prop_by_name (node, (const guchar *)"pixbuf");
+
+ etcs->expansion = e_xml_get_double_prop_by_name (node, (const guchar *)"expansion");
+ etcs->minimum_width = e_xml_get_integer_prop_by_name (node, (const guchar *)"minimum_width");
+ etcs->resizable = e_xml_get_bool_prop_by_name (node, (const guchar *)"resizable");
+ etcs->disabled = e_xml_get_bool_prop_by_name (node, (const guchar *)"disabled");
+
+ etcs->cell = e_xml_get_string_prop_by_name (node, (const guchar *)"cell");
+ etcs->compare = e_xml_get_string_prop_by_name (node, (const guchar *)"compare");
+ etcs->search = e_xml_get_string_prop_by_name (node, (const guchar *)"search");
+ etcs->sortable = e_xml_get_string_prop_by_name (node, (const guchar *)"sortable");
+ etcs->priority = e_xml_get_integer_prop_by_name_with_default (node, (const guchar *)"priority", 0);
if (etcs->title == NULL)
etcs->title = g_strdup("");
@@ -132,26 +132,26 @@ e_table_column_specification_save_to_node (ETableColumnSpecification *specificat
{
xmlNode *node;
if (parent)
- node = xmlNewChild(parent, NULL, (const unsigned char *)"ETableColumn", NULL);
+ node = xmlNewChild(parent, NULL, (const guchar *)"ETableColumn", NULL);
else
- node = xmlNewNode(NULL, (const unsigned char *)"ETableColumn");
+ node = xmlNewNode(NULL, (const guchar *)"ETableColumn");
- e_xml_set_integer_prop_by_name(node, (const unsigned char *)"model_col", specification->model_col);
+ e_xml_set_integer_prop_by_name(node, (const guchar *)"model_col", specification->model_col);
if (specification->compare_col != specification->model_col)
- e_xml_set_integer_prop_by_name(node, (const unsigned char *)"compare_col", specification->compare_col);
- e_xml_set_string_prop_by_name(node, (const unsigned char *)"_title", specification->title);
- e_xml_set_string_prop_by_name(node, (const unsigned char *)"pixbuf", specification->pixbuf);
-
- e_xml_set_double_prop_by_name(node, (const unsigned char *)"expansion", specification->expansion);
- e_xml_set_integer_prop_by_name(node, (const unsigned char *)"minimum_width", specification->minimum_width);
- e_xml_set_bool_prop_by_name(node, (const unsigned char *)"resizable", specification->resizable);
- e_xml_set_bool_prop_by_name(node, (const unsigned char *)"disabled", specification->disabled);
-
- e_xml_set_string_prop_by_name(node, (const unsigned char *)"cell", specification->cell);
- e_xml_set_string_prop_by_name(node, (const unsigned char *)"compare", specification->compare);
- e_xml_set_string_prop_by_name(node, (const unsigned char *)"search", specification->search);
+ e_xml_set_integer_prop_by_name(node, (const guchar *)"compare_col", specification->compare_col);
+ e_xml_set_string_prop_by_name(node, (const guchar *)"_title", specification->title);
+ e_xml_set_string_prop_by_name(node, (const guchar *)"pixbuf", specification->pixbuf);
+
+ e_xml_set_double_prop_by_name(node, (const guchar *)"expansion", specification->expansion);
+ e_xml_set_integer_prop_by_name(node, (const guchar *)"minimum_width", specification->minimum_width);
+ e_xml_set_bool_prop_by_name(node, (const guchar *)"resizable", specification->resizable);
+ e_xml_set_bool_prop_by_name(node, (const guchar *)"disabled", specification->disabled);
+
+ e_xml_set_string_prop_by_name(node, (const guchar *)"cell", specification->cell);
+ e_xml_set_string_prop_by_name(node, (const guchar *)"compare", specification->compare);
+ e_xml_set_string_prop_by_name(node, (const guchar *)"search", specification->search);
if (specification->priority != 0)
- e_xml_set_integer_prop_by_name (node, (const unsigned char *)"priority", specification->priority);
+ e_xml_set_integer_prop_by_name (node, (const guchar *)"priority", specification->priority);
return node;
}