diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-05-27 22:29:19 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-05-27 22:29:19 +0800 |
commit | 948235c3d1076dbe6ed2e57a24c16a083bbd9f01 (patch) | |
tree | 4133b1adfd94d8f889ca7ad4ad851346518f4171 /calendar/importers | |
parent | cc3a98fc1ad5bb87aa7335f3de404ee7feee1541 (diff) | |
download | gsoc2013-evolution-948235c3d1076dbe6ed2e57a24c16a083bbd9f01.tar gsoc2013-evolution-948235c3d1076dbe6ed2e57a24c16a083bbd9f01.tar.gz gsoc2013-evolution-948235c3d1076dbe6ed2e57a24c16a083bbd9f01.tar.bz2 gsoc2013-evolution-948235c3d1076dbe6ed2e57a24c16a083bbd9f01.tar.lz gsoc2013-evolution-948235c3d1076dbe6ed2e57a24c16a083bbd9f01.tar.xz gsoc2013-evolution-948235c3d1076dbe6ed2e57a24c16a083bbd9f01.tar.zst gsoc2013-evolution-948235c3d1076dbe6ed2e57a24c16a083bbd9f01.zip |
Prefer GLib basic types over C types.
Diffstat (limited to 'calendar/importers')
-rw-r--r-- | calendar/importers/icalendar-importer.c | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/calendar/importers/icalendar-importer.c b/calendar/importers/icalendar-importer.c index a4e0fa7048..caa7a8a87c 100644 --- a/calendar/importers/icalendar-importer.c +++ b/calendar/importers/icalendar-importer.c @@ -65,13 +65,13 @@ typedef struct { guint cancelled:1; } ICalIntelligentImporter; -static const int import_type_map[] = { +static const gint import_type_map[] = { E_CAL_SOURCE_TYPE_EVENT, E_CAL_SOURCE_TYPE_TODO, -1 }; -static const char *import_type_strings[] = { +static const gchar *import_type_strings[] = { N_("Appointments and Meetings"), N_("Tasks"), NULL @@ -184,7 +184,7 @@ struct _selector_data { EImportTarget *target; GtkWidget *selector; GtkWidget *notebook; - int page; + gint page; }; static void @@ -210,7 +210,7 @@ ivcal_getwidget(EImport *ei, EImportTarget *target, EImportImporter *im) { GtkWidget *vbox, *hbox, *first = NULL; GSList *group = NULL; - int i; + gint i; GtkWidget *nb; vbox = gtk_vbox_new (FALSE, FALSE); @@ -276,7 +276,7 @@ ivcal_getwidget(EImport *ei, EImportTarget *target, EImportImporter *im) } static gboolean -ivcal_import_items(void *d) +ivcal_import_items(gpointer d) { ICalImporter *ici = d; @@ -359,8 +359,8 @@ ivcal_cancel(EImport *ei, EImportTarget *target, EImportImporter *im) static gboolean ical_supported(EImport *ei, EImportTarget *target, EImportImporter *im) { - char *filename; - char *contents; + gchar *filename; + gchar *contents; gboolean ret = FALSE; EImportTargetURI *s; @@ -400,8 +400,8 @@ ical_supported(EImport *ei, EImportTarget *target, EImportImporter *im) static void ical_import(EImport *ei, EImportTarget *target, EImportImporter *im) { - char *filename; - char *contents; + gchar *filename; + gchar *contents; icalcomponent *icalcomp; EImportTargetURI *s = (EImportTargetURI *)target; @@ -453,8 +453,8 @@ ical_importer_peek(void) static gboolean vcal_supported(EImport *ei, EImportTarget *target, EImportImporter *im) { - char *filename; - char *contents; + gchar *filename; + gchar *contents; gboolean ret = FALSE; EImportTargetURI *s; @@ -514,12 +514,12 @@ vcal_supported(EImport *ei, EImportTarget *target, EImportImporter *im) /* This tries to load in a vCalendar file and convert it to an icalcomponent. It returns NULL on failure. */ static icalcomponent* -load_vcalendar_file (const char *filename) +load_vcalendar_file (const gchar *filename) { icalvcal_defaults defaults = { NULL }; icalcomponent *icalcomp = NULL; - char *contents; - char *default_alarm_filename; + gchar *contents; + gchar *default_alarm_filename; default_alarm_filename = g_build_filename (EVOLUTION_SOUNDDIR, "default_alarm.wav", @@ -527,8 +527,8 @@ load_vcalendar_file (const char *filename) defaults.alarm_audio_url = g_filename_to_uri (default_alarm_filename, NULL, NULL); g_free (default_alarm_filename); - defaults.alarm_audio_fmttype = (char *) "audio/x-wav"; - defaults.alarm_description = (char *) _("Reminder!"); + defaults.alarm_audio_fmttype = (gchar *) "audio/x-wav"; + defaults.alarm_description = (gchar *) _("Reminder!"); if (g_file_get_contents (filename, &contents, NULL, NULL)) { VObject *vcal; @@ -550,7 +550,7 @@ load_vcalendar_file (const char *filename) static void vcal_import(EImport *ei, EImportTarget *target, EImportImporter *im) { - char *filename; + gchar *filename; icalcomponent *icalcomp; EImportTargetURI *s = (EImportTargetURI *)target; @@ -591,7 +591,7 @@ vcal_importer_peek(void) static gboolean gnome_calendar_supported(EImport *ei, EImportTarget *target, EImportImporter *im) { - char *filename; + gchar *filename; gboolean res; EImportTargetHome *s = (EImportTargetHome *)target; @@ -609,11 +609,11 @@ static void gnome_calendar_import(EImport *ei, EImportTarget *target, EImportImporter *im) { icalcomponent *icalcomp = NULL; - char *filename; + gchar *filename; GList *vtodos; ECal *calendar_client = NULL, *tasks_client = NULL; - int t; - int do_calendar, do_tasks; + gint t; + gint do_calendar, do_tasks; EImportTargetHome *s = (EImportTargetHome *)target; ICalIntelligentImporter *ici; |