From: Dana Jansens Date: Thu, 24 Jun 2010 19:37:53 +0000 (+0200) Subject: Rename the size to 'bytes' for the size of the window struct X-Git-Tag: cgl~25 X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=78514bf7fa3063b578345fd658c97bbf78b254cb;p=dana%2Fopenbox.git Rename the size to 'bytes' for the size of the window struct --- 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 */