From 78514bf7fa3063b578345fd658c97bbf78b254cb Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Thu, 24 Jun 2010 21:37:53 +0200 Subject: [PATCH] Rename the size to 'bytes' for the size of the window struct --- openbox/window.c | 4 ++-- openbox/window.h | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/openbox/window.c b/openbox/window.c index 31cf039a..dfd4d320 100644 --- a/openbox/window.c +++ b/openbox/window.c @@ -56,7 +56,7 @@ ObWindow* window_new_size(ObWindowClass type, gsize size) g_assert(size >= sizeof(ObWindow)); self = g_slice_alloc0(size); - self->size = size; + self->bytes = size; self->type = type; return self; } @@ -90,7 +90,7 @@ void window_free(ObWindow *self) /* The abstract pointers must not be used here, they are likely invalid by now ! */ - g_slice_free1(self->size, self); + g_slice_free1(self->bytes, self); } ObWindow* window_find(Window xwin) diff --git a/openbox/window.h b/openbox/window.h index 2e3bcaae..c7d5c640 100644 --- a/openbox/window.h +++ b/openbox/window.h @@ -48,7 +48,7 @@ typedef enum { struct */ struct _ObWindow { ObWindowClass type; - gsize size; + gsize bytes; /* abstract values implemented by subclasses */ -- 2.34.1