diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2010-09-12 02:56:28 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2010-09-13 20:28:58 +0800 |
commit | cd53ba990035bdb4861d9660917d457533d4ecb2 (patch) | |
tree | d9c9da2208f4a921c514497ea92d27e3d88481d1 /plugins/save-calendar | |
parent | b2b27cfa1bfcd6efdac30d2745a6e8cd4e6de134 (diff) | |
download | gsoc2013-evolution-cd53ba990035bdb4861d9660917d457533d4ecb2.tar.gz gsoc2013-evolution-cd53ba990035bdb4861d9660917d457533d4ecb2.tar.zst gsoc2013-evolution-cd53ba990035bdb4861d9660917d457533d4ecb2.zip |
Coding style cleanups.
Diffstat (limited to 'plugins/save-calendar')
-rw-r--r-- | plugins/save-calendar/csv-format.c | 16 | ||||
-rw-r--r-- | plugins/save-calendar/rdf-format.c | 2 | ||||
-rw-r--r-- | plugins/save-calendar/save-calendar.c | 2 |
3 files changed, 10 insertions, 10 deletions
diff --git a/plugins/save-calendar/csv-format.c b/plugins/save-calendar/csv-format.c index c3f566de4b..58dd9ac5af 100644 --- a/plugins/save-calendar/csv-format.c +++ b/plugins/save-calendar/csv-format.c @@ -243,7 +243,7 @@ add_string_to_csv (GString *line, const gchar *value, CsvConfig *config) { /* Will add a string to the record and will check for the need for quotes */ - if ((value) && (strlen(value)>0)) { + if ((value) && (strlen (value)>0)) { gboolean needquotes = string_needsquotes (value, config); if (needquotes) @@ -261,7 +261,7 @@ static gchar * userstring_to_systemstring (const gchar *userstring) { const gchar *text = userstring; - gint i=0, len = strlen(text); + gint i=0, len = strlen (text); GString *str = g_string_new (""); gchar *retval = NULL; @@ -340,11 +340,11 @@ do_save_calendar_csv (FormatHandler *handler, config = g_new (CsvConfig, 1); - tmp = gtk_entry_get_text (GTK_ENTRY(d->delimiter_entry)); + tmp = gtk_entry_get_text (GTK_ENTRY (d->delimiter_entry)); config->delimiter = userstring_to_systemstring (tmp?tmp:", "); - tmp = gtk_entry_get_text (GTK_ENTRY(d->newline_entry)); + tmp = gtk_entry_get_text (GTK_ENTRY (d->newline_entry)); config->newline = userstring_to_systemstring (tmp?tmp:"\\n"); - tmp = gtk_entry_get_text (GTK_ENTRY(d->quote_entry)); + tmp = gtk_entry_get_text (GTK_ENTRY (d->quote_entry)); config->quote = userstring_to_systemstring (tmp?tmp:"\""); config->header = gtk_toggle_button_get_active (GTK_TOGGLE_BUTTON (d->header_check)); @@ -379,10 +379,10 @@ do_save_calendar_csv (FormatHandler *handler, }; line = g_string_new (""); - for (i=0;i<G_N_ELEMENTS(labels);i++) { + for (i=0;i<G_N_ELEMENTS (labels);i++) { if (i>0) - line = g_string_append(line, config->delimiter); - line = g_string_append(line, _(labels[i])); + line = g_string_append (line, config->delimiter); + line = g_string_append (line, _(labels[i])); } line = g_string_append (line, config->newline); diff --git a/plugins/save-calendar/rdf-format.c b/plugins/save-calendar/rdf-format.c index acbb6557c6..8014fe9ddf 100644 --- a/plugins/save-calendar/rdf-format.c +++ b/plugins/save-calendar/rdf-format.c @@ -205,7 +205,7 @@ do_save_calendar_rdf (FormatHandler *handler, ESourceSelector *selector, ECalSou stream = open_for_writing (GTK_WINDOW (gtk_widget_get_toplevel (GTK_WIDGET (selector))), dest_uri, &error); if (stream && e_cal_get_object_list_as_comp (source_client, "#t", &objects, NULL)) { - xmlBufferPtr buffer=xmlBufferCreate(); + xmlBufferPtr buffer=xmlBufferCreate (); xmlDocPtr doc = xmlNewDoc((xmlChar *) "1.0"); xmlNodePtr fnode; diff --git a/plugins/save-calendar/save-calendar.c b/plugins/save-calendar/save-calendar.c index b7872a68d4..facb915566 100644 --- a/plugins/save-calendar/save-calendar.c +++ b/plugins/save-calendar/save-calendar.c @@ -118,7 +118,7 @@ ask_destination_and_save (ESourceSelector *selector, ECalSourceType type) GtkWidget *extra_widget = gtk_vbox_new (FALSE, 0); GtkWidget *hbox = gtk_hbox_new (FALSE, 0); GtkLabel *label = GTK_LABEL (gtk_label_new_with_mnemonic (_("_Format:"))); - GtkComboBox *combo = GTK_COMBO_BOX(gtk_combo_box_new ()); + GtkComboBox *combo = GTK_COMBO_BOX (gtk_combo_box_new ()); GtkTreeModel *model = GTK_TREE_MODEL (gtk_list_store_new (N_DEST_COLUMNS, G_TYPE_STRING, G_TYPE_POINTER)); GtkCellRenderer *renderer=NULL; |