aboutsummaryrefslogtreecommitdiffstats
path: root/widgets/e-table/e-table-selection-model.c
diff options
context:
space:
mode:
Diffstat (limited to 'widgets/e-table/e-table-selection-model.c')
-rw-r--r--widgets/e-table/e-table-selection-model.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/widgets/e-table/e-table-selection-model.c b/widgets/e-table/e-table-selection-model.c
index b82d3c3a5e..c6b7485608 100644
--- a/widgets/e-table/e-table-selection-model.c
+++ b/widgets/e-table/e-table-selection-model.c
@@ -47,7 +47,7 @@ model_changed(ETableModel *etm, ETableSelectionModel *etsm)
e_table_selection_model_clear(etsm);
}
-#if 1
+#if 0
static void
model_row_inserted(ETableModel *etm, int row, ETableSelectionModel *etsm)
{
@@ -56,7 +56,7 @@ model_row_inserted(ETableModel *etm, int row, ETableSelectionModel *etsm)
if(etsm->row_count >= 0) {
/* Add another word if needed. */
if ((etsm->row_count & 0x1f) == 0) {
- etsm->selection = g_realloc(etsm->selection, (etsm->row_count >> 5) + 1);
+ etsm->selection = g_renew(etsm->selection, gint, (etsm->row_count >> 5) + 1);
etsm->selection[etsm->row_count >> 5] = 0;
}
@@ -101,7 +101,7 @@ model_row_deleted(ETableModel *etm, int row, ETableSelectionModel *etsm)
etsm->row_count --;
/* Remove the last word if not needed. */
if ((etsm->row_count & 0x1f) == 0) {
- etsm->selection = g_realloc(etsm->selection, etsm->row_count >> 5);
+ etsm->selection = g_renew(etsm->selection, gint, etsm->row_count >> 5);
}
}
}