aboutsummaryrefslogtreecommitdiffstats
path: root/e-util/e-bit-array.c
diff options
context:
space:
mode:
authorChristopher James Lahey <clahey@ximian.com>2002-04-26 04:05:40 +0800
committerChris Lahey <clahey@src.gnome.org>2002-04-26 04:05:40 +0800
commit0a226a048384c990cb180b5f52a6c51f153252c3 (patch)
treeb6d6490c760d524cbb676681d38c7093fa18a123 /e-util/e-bit-array.c
parent6c0fded334bf9c7a2b7142cae6ee372afe2026be (diff)
downloadgsoc2013-evolution-0a226a048384c990cb180b5f52a6c51f153252c3.tar.gz
gsoc2013-evolution-0a226a048384c990cb180b5f52a6c51f153252c3.tar.zst
gsoc2013-evolution-0a226a048384c990cb180b5f52a6c51f153252c3.zip
Ansification patch from danw.
2002-04-25 Christopher James Lahey <clahey@ximian.com> * gal/e-paned/e-paned.c, gal/e-text/e-entry.c, gal/util/e-bit-array.c, gal/util/e-sorter-array.c, gal/util/e-sorter.c, gal/util/e-text-event-processor.c, gal/widgets/color-group.c, gal/widgets/color-palette.c, gal/widgets/e-canvas-vbox.c, gal/widgets/e-canvas.c, gal/widgets/e-canvas.h, gal/widgets/e-categories-master-list-array.c, gal/widgets/e-categories-master-list-combo.c, gal/widgets/e-categories-master-list-dialog-model.c, gal/widgets/e-categories-master-list-dialog.c, gal/widgets/e-categories.c, gal/widgets/e-reflow-model.c, gal/widgets/e-reflow.c, gal/widgets/e-selection-model-array.c, gal/widgets/e-selection-model-simple.c, gal/widgets/e-selection-model.c, gal/widgets/e-selection-model.h, gal/widgets/gtk-combo-box.c, gal/widgets/gtk-combo-stack.c, gal/widgets/widget-color-combo.c, gal/widgets/widget-pixmap-combo.c: Ansification patch from danw. svn path=/trunk/; revision=16589
Diffstat (limited to 'e-util/e-bit-array.c')
-rw-r--r--e-util/e-bit-array.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/e-util/e-bit-array.c b/e-util/e-bit-array.c
index 274ee32b09..9dd8a17b60 100644
--- a/e-util/e-bit-array.c
+++ b/e-util/e-bit-array.c
@@ -48,7 +48,7 @@ e_bit_array_insert_real(EBitArray *eba, int row)
if(eba->bit_count >= 0) {
/* Add another word if needed. */
if ((eba->bit_count & 0x1f) == 0) {
- eba->data = g_renew(gint, eba->data, (eba->bit_count >> 5) + 1);
+ eba->data = g_renew(guint32, eba->data, (eba->bit_count >> 5) + 1);
eba->data[eba->bit_count >> 5] = 0;
}
@@ -97,7 +97,7 @@ e_bit_array_delete_real(EBitArray *eba, int row, gboolean move_selection_mode)
eba->bit_count --;
/* Remove the last word if not needed. */
if ((eba->bit_count & 0x1f) == 0) {
- eba->data = g_renew(gint, eba->data, eba->bit_count >> 5);
+ eba->data = g_renew(guint32, eba->data, eba->bit_count >> 5);
}
if (move_selection_mode && selected) {
e_bit_array_select_single_row (eba, row > 0 ? row - 1 : 0);
@@ -266,7 +266,7 @@ e_bit_array_select_all (EBitArray *eba)
int i;
if (!eba->data)
- eba->data = g_new0 (gint, (eba->bit_count + 31) / 32);
+ eba->data = g_new0 (guint32, (eba->bit_count + 31) / 32);
for (i = 0; i < (eba->bit_count + 31) / 32; i ++) {
eba->data[i] = ONES;
@@ -298,7 +298,7 @@ e_bit_array_invert_selection (EBitArray *eba)
int i;
if (!eba->data)
- eba->data = g_new0 (gint, (eba->bit_count + 31) / 32);
+ eba->data = g_new0 (guint32, (eba->bit_count + 31) / 32);
for (i = 0; i < (eba->bit_count + 31) / 32; i ++) {
eba->data[i] = ~eba->data[i];
@@ -379,7 +379,7 @@ e_bit_array_select_single_row (EBitArray *eba, int row)
if (!((i == BOX(row) && eba->data[i] == BITMASK(row)) ||
(i != BOX(row) && eba->data[i] == 0))) {
g_free(eba->data);
- eba->data = g_new0(gint, (eba->bit_count + 31) / 32);
+ eba->data = g_new0(guint32, (eba->bit_count + 31) / 32);
eba->data[BOX(row)] = BITMASK(row);
break;
@@ -417,13 +417,13 @@ e_bit_array_class_init (EBitArrayClass *klass)
}
E_MAKE_TYPE(e_bit_array, "EBitArray", EBitArray,
- e_bit_array_class_init, e_bit_array_init, PARENT_TYPE);
+ e_bit_array_class_init, e_bit_array_init, PARENT_TYPE)
EBitArray *
e_bit_array_new (int count)
{
EBitArray *eba = gtk_type_new (e_bit_array_get_type ());
eba->bit_count = count;
- eba->data = g_new0(gint, (eba->bit_count + 31) / 32);
+ eba->data = g_new0(guint32, (eba->bit_count + 31) / 32);
return eba;
}