From c85109fc322137596bf34cffc5445d568223c60d Mon Sep 17 00:00:00 2001 From: Matthew Barnes Date: Thu, 12 Jul 2012 08:02:18 -0400 Subject: Coding style and whitespace cleanup. --- plugins/save-calendar/csv-format.c | 12 ++++++------ plugins/save-calendar/rdf-format.c | 12 ++++++------ 2 files changed, 12 insertions(+), 12 deletions(-) (limited to 'plugins/save-calendar') 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); -- cgit