diff options
author | Matthew Barnes <mbarnes@redhat.com> | 2009-05-27 23:13:25 +0800 |
---|---|---|
committer | Matthew Barnes <mbarnes@redhat.com> | 2009-05-29 00:13:23 +0800 |
commit | fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056 (patch) | |
tree | ae78be371695c3dc18847b87d3f014f985aa3a40 /calendar/gui/e-cell-date-edit-text.c | |
parent | 6f5464f34ceec9e5701e3e3e651a40f9e6b3a072 (diff) | |
download | gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.gz gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.bz2 gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.lz gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.xz gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.tar.zst gsoc2013-evolution-fad4af8a3d4c6f50f7bcceca8d545eb17d6fd056.zip |
Prefer GLib basic types over C types.
Diffstat (limited to 'calendar/gui/e-cell-date-edit-text.c')
-rw-r--r-- | calendar/gui/e-cell-date-edit-text.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/calendar/gui/e-cell-date-edit-text.c b/calendar/gui/e-cell-date-edit-text.c index 8a43c628fc..efe251aa0f 100644 --- a/calendar/gui/e-cell-date-edit-text.c +++ b/calendar/gui/e-cell-date-edit-text.c @@ -59,13 +59,13 @@ e_cell_date_edit_text_set_use_24_hour_format (ECellDateEditText *ecd, } -static char * -ecd_get_text (ECellText *cell, ETableModel *model, int col, int row) +static gchar * +ecd_get_text (ECellText *cell, ETableModel *model, gint col, gint row) { ECellDateEditText *ecd = E_CELL_DATE_EDIT_TEXT (cell); ECellDateEditValue *dv = e_table_model_value_at (model, col, row); struct tm tmp_tm; - char buffer[64]; + gchar buffer[64]; if (!dv) return g_strdup (""); @@ -84,7 +84,7 @@ ecd_get_text (ECellText *cell, ETableModel *model, int col, int row) static void -ecd_free_text (ECellText *cell, char *text) +ecd_free_text (ECellText *cell, gchar *text) { g_free (text); } @@ -95,7 +95,7 @@ static void show_date_warning (ECellDateEditText *ecd) { GtkWidget *dialog; - char buffer[64], *format; + gchar buffer[64], *format; time_t t; struct tm *tmp_tm; @@ -125,8 +125,8 @@ show_date_warning (ECellDateEditText *ecd) static void -ecd_set_value (ECellText *cell, ETableModel *model, int col, int row, - const char *text) +ecd_set_value (ECellText *cell, ETableModel *model, gint col, gint row, + const gchar *text) { ECellDateEditText *ecd = E_CELL_DATE_EDIT_TEXT (cell); ETimeParseStatus status; @@ -206,7 +206,7 @@ e_cell_date_edit_text_init (ECellDateEditText *ecd) * Returns: an ECell object that can be used to render dates. */ ECell * -e_cell_date_edit_text_new (const char *fontname, +e_cell_date_edit_text_new (const gchar *fontname, GtkJustification justify) { ECellDateEditText *ecd = g_object_new (e_cell_date_edit_text_get_type (), NULL); |