aboutsummaryrefslogtreecommitdiffstats
path: root/plugins/save-calendar
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2012-07-12 20:02:18 +0800
committerMatthew Barnes <mbarnes@redhat.com>2012-08-20 02:17:55 +0800
commitc85109fc322137596bf34cffc5445d568223c60d (patch)
tree711e6d5b2eb3d6c7780d1d01e20d980c67a77f9e /plugins/save-calendar
parent7d1751cc26a75166019917ec8c3b35e1083d27d6 (diff)
downloadgsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar
gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar.gz
gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar.bz2
gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar.lz
gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar.xz
gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.tar.zst
gsoc2013-evolution-c85109fc322137596bf34cffc5445d568223c60d.zip
Coding style and whitespace cleanup.
Diffstat (limited to 'plugins/save-calendar')
-rw-r--r--plugins/save-calendar/csv-format.c12
-rw-r--r--plugins/save-calendar/rdf-format.c12
2 files changed, 12 insertions, 12 deletions
diff --git a/plugins/save-calendar/csv-format.c b/plugins/save-calendar/csv-format.c
index de59cd558c..e5b2be3b70 100644
--- a/plugins/save-calendar/csv-format.c
+++ b/plugins/save-calendar/csv-format.c
@@ -348,11 +348,11 @@ do_save_calendar_csv (FormatHandler *handler,
config = g_new (CsvConfig, 1);
tmp = gtk_entry_get_text (GTK_ENTRY (d->delimiter_entry));
- config->delimiter = userstring_to_systemstring (tmp?tmp:", ");
+ config->delimiter = userstring_to_systemstring (tmp ? tmp:", ");
tmp = gtk_entry_get_text (GTK_ENTRY (d->newline_entry));
- config->newline = userstring_to_systemstring (tmp?tmp:"\\n");
+ config->newline = userstring_to_systemstring (tmp ? tmp:"\\n");
tmp = gtk_entry_get_text (GTK_ENTRY (d->quote_entry));
- config->quote = userstring_to_systemstring (tmp?tmp:"\"");
+ config->quote = userstring_to_systemstring (tmp ? tmp:"\"");
config->header = gtk_toggle_button_get_active (
GTK_TOGGLE_BUTTON (d->header_check));
@@ -570,9 +570,9 @@ create_options_widget (FormatHandler *handler)
_("Prepend a _header"));
/* Advanced CSV options */
- gtk_entry_set_text (GTK_ENTRY(d->delimiter_entry), ", ");
- gtk_entry_set_text (GTK_ENTRY(d->quote_entry), "\"");
- gtk_entry_set_text (GTK_ENTRY(d->newline_entry), "\\n");
+ gtk_entry_set_text (GTK_ENTRY (d->delimiter_entry), ", ");
+ gtk_entry_set_text (GTK_ENTRY (d->quote_entry), "\"");
+ gtk_entry_set_text (GTK_ENTRY (d->newline_entry), "\\n");
gtk_table_set_row_spacings (GTK_TABLE (table), 5);
gtk_table_set_col_spacings (GTK_TABLE (table), 5);
diff --git a/plugins/save-calendar/rdf-format.c b/plugins/save-calendar/rdf-format.c
index 0c7d97c140..c4326ccd0f 100644
--- a/plugins/save-calendar/rdf-format.c
+++ b/plugins/save-calendar/rdf-format.c
@@ -150,7 +150,7 @@ add_time_to_rdf (xmlNodePtr node,
/* Not sure about this property */
timezone = calendar_config_get_timezone ();
tmp = g_strdup_printf ("http://www.w3.org/2002/12/cal/tzd/%s#tz", timezone);
- xmlSetProp (cur_node, (const guchar *)"rdf:datatype", (guchar *)tmp);
+ xmlSetProp (cur_node, (const guchar *)"rdf:datatype", (guchar *) tmp);
g_free (tmp);
g_free (timezone);
g_free (str);
@@ -214,7 +214,7 @@ do_save_calendar_rdf (FormatHandler *handler,
GSList *iter;
xmlBufferPtr buffer = xmlBufferCreate ();
- xmlDocPtr doc = xmlNewDoc((xmlChar *) "1.0");
+ xmlDocPtr doc = xmlNewDoc ((xmlChar *) "1.0");
xmlNodePtr fnode;
doc->children = xmlNewDocNode (doc, NULL, (const guchar *)"rdf:RDF", NULL);
@@ -234,14 +234,14 @@ do_save_calendar_rdf (FormatHandler *handler,
xmlNewChild (fnode, NULL, (const guchar *)"calscale", (const guchar *)"GREGORIAN");
temp = calendar_config_get_timezone ();
- xmlNewChild (fnode, NULL, (const guchar *)"x-wr:timezone", (guchar *)temp);
+ xmlNewChild (fnode, NULL, (const guchar *)"x-wr:timezone", (guchar *) temp);
g_free (temp);
xmlNewChild (fnode, NULL, (const guchar *)"method", (const guchar *)"PUBLISH");
- xmlNewChild (fnode, NULL, (const guchar *)"x-wr:relcalid", (guchar *)e_source_get_uid (primary_source));
+ xmlNewChild (fnode, NULL, (const guchar *)"x-wr:relcalid", (guchar *) e_source_get_uid (primary_source));
- xmlNewChild (fnode, NULL, (const guchar *)"x-wr:calname", (guchar *)e_source_get_display_name (primary_source));
+ xmlNewChild (fnode, NULL, (const guchar *)"x-wr:calname", (guchar *) e_source_get_display_name (primary_source));
/* Version of this RDF-format */
xmlNewChild (fnode, NULL, (const guchar *)"version", (const guchar *)"2.0");
@@ -261,7 +261,7 @@ do_save_calendar_rdf (FormatHandler *handler,
/* Getting the stuff */
e_cal_component_get_uid (comp, &temp_constchar);
tmp_str = g_strdup_printf ("#%s", temp_constchar);
- xmlSetProp (node, (const guchar *)"about", (guchar *)tmp_str);
+ xmlSetProp (node, (const guchar *)"about", (guchar *) tmp_str);
g_free (tmp_str);
add_string_to_rdf (node, "uid",temp_constchar);