aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-cell-percent.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 /widgets/table/e-cell-percent.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 'widgets/table/e-cell-percent.c')
-rw-r--r--widgets/table/e-cell-percent.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/widgets/table/e-cell-percent.c b/widgets/table/e-cell-percent.c
index 194a7bd6b6..378bb8ab55 100644
--- a/widgets/table/e-cell-percent.c
+++ b/widgets/table/e-cell-percent.c
@@ -41,11 +41,11 @@
G_DEFINE_TYPE (ECellPercent, e_cell_percent, E_CELL_TEXT_TYPE)
-static char *
-ecp_get_text (ECellText *cell, ETableModel *model, int col, int row)
+static gchar *
+ecp_get_text (ECellText *cell, ETableModel *model, gint col, gint row)
{
- int percent;
- static char buffer[8];
+ gint percent;
+ static gchar buffer[8];
percent = GPOINTER_TO_INT (e_table_model_value_at (model, col, row));
@@ -60,7 +60,7 @@ ecp_get_text (ECellText *cell, ETableModel *model, int col, int row)
}
static void
-ecp_free_text(ECellText *cell, char *text)
+ecp_free_text(ECellText *cell, gchar *text)
{
/* Do Nothing. */
}
@@ -80,12 +80,12 @@ show_percent_warning (void)
}
static void
-ecp_set_value (ECellText *cell, ETableModel *model, int col, int row,
- const char *text)
+ecp_set_value (ECellText *cell, ETableModel *model, gint col, gint row,
+ const gchar *text)
{
- int matched, percent;
+ gint matched, percent;
gboolean empty = TRUE;
- const char *p;
+ const gchar *p;
if (text) {
p = text;
@@ -142,7 +142,7 @@ e_cell_percent_init (ECellPercent *ecp)
* Returns: an ECell object that can be used to render numbers.
*/
ECell *
-e_cell_percent_new (const char *fontname, GtkJustification justify)
+e_cell_percent_new (const gchar *fontname, GtkJustification justify)
{
ECellPercent *ecn = g_object_new (E_CELL_PERCENT_TYPE, NULL);