diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2012-11-10 11:40:00 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2012-11-11 04:54:43 +0800 |
commit | 2c4ae5e7685c462f8d464448e4617b8dea029e72 (patch) | |
tree | c34f0cbb7c500ff70f10fce846631b0a948b341c /calendar/importers | |
parent | 583da46b8caf4b2a8b548b03c38fe0e84164abfb (diff) | |
download | gsoc2013-evolution-2c4ae5e7685c462f8d464448e4617b8dea029e72.tar.gz gsoc2013-evolution-2c4ae5e7685c462f8d464448e4617b8dea029e72.tar.zst gsoc2013-evolution-2c4ae5e7685c462f8d464448e4617b8dea029e72.zip |
Coding style and whitespace cleanup.
Diffstat (limited to 'calendar/importers')
-rw-r--r-- | calendar/importers/icalendar-importer.c | 32 |
1 files changed, 19 insertions, 13 deletions
diff --git a/calendar/importers/icalendar-importer.c b/calendar/importers/icalendar-importer.c index 4f2a345de2..89e5f0ccfc 100644 --- a/calendar/importers/icalendar-importer.c +++ b/calendar/importers/icalendar-importer.c @@ -697,11 +697,13 @@ load_vcalendar_file (const gchar *filename) gchar *contents; gchar *default_alarm_filename; - default_alarm_filename = g_build_filename (EVOLUTION_SOUNDDIR, - "default_alarm.wav", - NULL); - defaults.alarm_audio_url = g_filename_to_uri (default_alarm_filename, - NULL, NULL); + default_alarm_filename = g_build_filename ( + EVOLUTION_SOUNDDIR, + "default_alarm.wav", + NULL); + defaults.alarm_audio_url = g_filename_to_uri ( + default_alarm_filename, + NULL, NULL); g_free (default_alarm_filename); defaults.alarm_audio_fmttype = (gchar *) "audio/x-wav"; defaults.alarm_description = (gchar *) _("Reminder!"); @@ -714,8 +716,8 @@ load_vcalendar_file (const gchar *filename) g_free (contents); if (vcal) { - icalcomp = icalvcal_convert_with_defaults (vcal, - &defaults); + icalcomp = icalvcal_convert_with_defaults ( + vcal, &defaults); cleanVObject (vcal); } } @@ -1501,10 +1503,11 @@ ical_get_preview (icalcomponent *icalcomp) formatted_dt = format_dt (&dt, timezones, users_zone); gtk_list_store_append (store, &iter); - gtk_list_store_set (store, &iter, + gtk_list_store_set ( + store, &iter, 0, kind == ICAL_VEVENT_COMPONENT ? (e_cal_component_has_attendees (comp) ? C_("iCalImp", "Meeting") : C_("iCalImp", "Event")) : - kind == ICAL_VTODO_COMPONENT ? C_("iCalImp", "Task") : - kind == ICAL_VJOURNAL_COMPONENT ? C_("iCalImp", "Memo") : "??? Other ???", + kind == ICAL_VTODO_COMPONENT ? C_("iCalImp", "Task") : + kind == ICAL_VJOURNAL_COMPONENT ? C_("iCalImp", "Memo") : "??? Other ???", 1, formatted_dt ? formatted_dt : "", 2, summary.value && *summary.value ? summary.value : summary.altrep && *summary.altrep ? summary.altrep : "", 3, comp, @@ -1535,15 +1538,18 @@ ical_get_preview (icalcomponent *icalcomp) g_object_unref (store); /* Translators: Column header for a component type; it can be Event, Task or Memo */ - gtk_tree_view_insert_column_with_attributes (tree_view, -1, C_("iCalImp", "Type"), + gtk_tree_view_insert_column_with_attributes ( + tree_view, -1, C_("iCalImp", "Type"), gtk_cell_renderer_text_new (), "text", 0, NULL); /* Translators: Column header for a component start date/time */ - gtk_tree_view_insert_column_with_attributes (tree_view, -1, C_("iCalImp", "Start"), + gtk_tree_view_insert_column_with_attributes ( + tree_view, -1, C_("iCalImp", "Start"), gtk_cell_renderer_text_new (), "text", 1, NULL); /* Translators: Column header for a component summary */ - gtk_tree_view_insert_column_with_attributes (tree_view, -1, C_("iCalImp", "Summary"), + gtk_tree_view_insert_column_with_attributes ( + tree_view, -1, C_("iCalImp", "Summary"), gtk_cell_renderer_text_new (), "text", 2, NULL); if (gtk_tree_model_iter_n_children (GTK_TREE_MODEL (store), NULL) > 1) |