aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/table/e-table-selection-model.c
diff options
context:
space:
mode:
authorMatthew Barnes <mbarnes@redhat.com>2009-05-27 23:13:25 +0800
committerMatthew Barnes <mbarnes@redhat.com>2009-05-29 00:13:23 +0800
commitfad4af8a3d4c6f50f7bcceca8d545eb17d6fd056 (patch)
treeae78be371695c3dc18847b87d3f014f985aa3a40 /widgets/table/e-table-selection-model.c
parent6f5464f34ceec9e5701e3e3e651a40f9e6b3a072 (diff)
downloadgsoc2013-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 'widgets/table/e-table-selection-model.c')
-rw-r--r--widgets/table/e-table-selection-model.c22
1 files changed, 11 insertions, 11 deletions
diff --git a/widgets/table/e-table-selection-model.c b/widgets/table/e-table-selection-model.c
index 7f6ab4d782..22ec5af7d5 100644
--- a/widgets/table/e-table-selection-model.c
+++ b/widgets/table/e-table-selection-model.c
@@ -42,7 +42,7 @@ enum {
};
static void
-save_to_hash(int model_row, gpointer closure)
+save_to_hash(gint model_row, gpointer closure)
{
ETableSelectionModel *etsm = closure;
const gchar *key = e_table_model_get_save_id(etsm->model, model_row);
@@ -95,10 +95,10 @@ model_changed_idle(ETableSelectionModel *etsm)
e_selection_model_clear(E_SELECTION_MODEL(etsm));
if (etsm->cursor_id && etm && e_table_model_has_save_id(etm)) {
- int row_count = e_table_model_row_count(etm);
- int cursor_row = -1;
- int cursor_col = -1;
- int i;
+ gint row_count = e_table_model_row_count(etm);
+ gint cursor_row = -1;
+ gint cursor_col = -1;
+ gint i;
e_selection_model_array_confirm_row_count(E_SELECTION_MODEL_ARRAY(etsm));
for (i = 0; i < row_count; i++) {
gchar *save_id = e_table_model_get_save_id(etm, i);
@@ -138,27 +138,27 @@ model_changed(ETableModel *etm, ETableSelectionModel *etsm)
}
static void
-model_row_changed(ETableModel *etm, int row, ETableSelectionModel *etsm)
+model_row_changed(ETableModel *etm, gint row, ETableSelectionModel *etsm)
{
free_hash(etsm);
}
static void
-model_cell_changed(ETableModel *etm, int col, int row, ETableSelectionModel *etsm)
+model_cell_changed(ETableModel *etm, gint col, gint row, ETableSelectionModel *etsm)
{
free_hash(etsm);
}
#if 1
static void
-model_rows_inserted(ETableModel *etm, int row, int count, ETableSelectionModel *etsm)
+model_rows_inserted(ETableModel *etm, gint row, gint count, ETableSelectionModel *etsm)
{
e_selection_model_array_insert_rows(E_SELECTION_MODEL_ARRAY(etsm), row, count);
free_hash(etsm);
}
static void
-model_rows_deleted(ETableModel *etm, int row, int count, ETableSelectionModel *etsm)
+model_rows_deleted(ETableModel *etm, gint row, gint count, ETableSelectionModel *etsm)
{
e_selection_model_array_delete_rows(E_SELECTION_MODEL_ARRAY(etsm), row, count);
free_hash(etsm);
@@ -167,13 +167,13 @@ model_rows_deleted(ETableModel *etm, int row, int count, ETableSelectionModel *e
#else
static void
-model_rows_inserted(ETableModel *etm, int row, int count, ETableSelectionModel *etsm)
+model_rows_inserted(ETableModel *etm, gint row, gint count, ETableSelectionModel *etsm)
{
model_changed(etm, etsm);
}
static void
-model_rows_deleted(ETableModel *etm, int row, int count, ETableSelectionModel *etsm)
+model_rows_deleted(ETableModel *etm, gint row, gint count, ETableSelectionModel *etsm)
{
model_changed(etm, etsm);
}