Rename the size to 'bytes' for the size of the window struct
authorDana Jansens <danakj@orodu.net>
Thu, 24 Jun 2010 19:37:53 +0000 (21:37 +0200)
committerDana Jansens <danakj@orodu.net>
Sat, 26 Jun 2010 23:30:50 +0000 (01:30 +0200)
openbox/window.c
openbox/window.h

index 31cf039a47a056c7b8e244fdfefac77c28b1a5c9..dfd4d32004626f80b2096aba24916c4d08688e19 100644 (file)
@@ -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)
index 2e3bcaae338d22b626ef409fe87eca41bfb2ebcf..c7d5c640adf8bc25297eb5861de5b3f71802586d 100644 (file)
@@ -48,7 +48,7 @@ typedef enum {
    struct */
 struct _ObWindow {
     ObWindowClass type;
-    gsize size;
+    gsize bytes;
 
     /* abstract values implemented by subclasses */