aboutsummaryrefslogtreecommitdiffstats
path: root/calendar/gui/dialogs/comp-editor-util.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-05-27 22:29:19 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-05-27 22:29:19 +0800
commit948235c3d1076dbe6ed2e57a24c16a083bbd9f01 (patch)
tree4133b1adfd94d8f889ca7ad4ad851346518f4171 /calendar/gui/dialogs/comp-editor-util.c
parentcc3a98fc1ad5bb87aa7335f3de404ee7feee1541 (diff)
downloadgsoc2013-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/gui/dialogs/comp-editor-util.c')
-rw-r--r--calendar/gui/dialogs/comp-editor-util.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/calendar/gui/dialogs/comp-editor-util.c b/calendar/gui/dialogs/comp-editor-util.c
index 4666058b51..e9661db372 100644
--- a/calendar/gui/dialogs/comp-editor-util.c
+++ b/calendar/gui/dialogs/comp-editor-util.c
@@ -121,7 +121,7 @@ write_label_piece (struct icaltimetype *tt,
{
struct tm tmp_tm = { 0 };
struct icaltimetype tt_copy = *tt;
- int len;
+ gint len;
/* FIXME: May want to convert the time to an appropriate zone. */
@@ -166,7 +166,7 @@ write_label_piece (struct icaltimetype *tt,
void
comp_editor_date_label (CompEditorPageDates *dates, GtkWidget *label)
{
- char buffer[1024];
+ gchar buffer[1024];
gboolean start_set = FALSE, end_set = FALSE;
gboolean complete_set = FALSE, due_set = FALSE;
@@ -290,13 +290,13 @@ comp_editor_get_current_time (GtkObject *object, gpointer data)
* Return value: The category names stripped of surrounding whitespace
* and separated with commas.
**/
-char *
-comp_editor_strip_categories (const char *categories)
+gchar *
+comp_editor_strip_categories (const gchar *categories)
{
- char *new_categories;
- const char *start, *end;
- const char *p;
- char *new_p;
+ gchar *new_categories;
+ const gchar *start, *end;
+ const gchar *p;
+ gchar *new_p;
if (!categories)
return NULL;
@@ -314,7 +314,7 @@ comp_editor_strip_categories (const char *categories)
if (g_unichar_isspace (c))
continue;
else if (c == ',') {
- int len;
+ gint len;
if (!start)
continue;
@@ -337,7 +337,7 @@ comp_editor_strip_categories (const char *categories)
}
if (start) {
- int len;
+ gint len;
g_return_val_if_fail (start <= end, NULL);