Author: pollux
Date: 2006-08-10 13:01:08 +0000 (Thu, 10 Aug 2006)
New Revision: 22703

Added:
   xfce4-panel/trunk/libxfce4panel/xfce-panel-macros.h
Log:
add missing xfce4-panel-macros.h

Added: xfce4-panel/trunk/libxfce4panel/xfce-panel-macros.h
===================================================================
--- xfce4-panel/trunk/libxfce4panel/xfce-panel-macros.h                         
(rev 0)
+++ xfce4-panel/trunk/libxfce4panel/xfce-panel-macros.h 2006-08-10 13:01:08 UTC 
(rev 22703)
@@ -0,0 +1,45 @@
+/* vim: set expandtab ts=8 sw=4: */
+
+/*  $Id: xfce-panel-plugin.h 20349 2006-03-12 09:04:43Z jasper $
+ *
+ *  Copyright © 2005 Jasper Huijsmans <[EMAIL PROTECTED]>
+ *
+ *  This program is free software; you can redistribute it and/or modify
+ *  it under the terms of the GNU Library General Public License as published 
+ *  by the Free Software Foundation; either version 2 of the License, or
+ *  (at your option) any later version.
+ *
+ *  This program is distributed in the hope that it will be useful,
+ *  but WITHOUT ANY WARRANTY; without even the implied warranty of
+ *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ *  GNU Library General Public License for more details.
+ *
+ *  You should have received a copy of the GNU Library General Public License
+ *  along with this program; if not, write to the Free Software
+ *  Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
+ */
+
+#ifndef _XFCE_PANEL_MACROS_H
+#define _XFCE_PANEL_MACROS_H
+
+/**
+ * Support macro's for the slice allocator
+ **/
+#if GLIB_CHECK_VERSION(2,10,0)
+#define panel_slice_alloc(block_size)             (g_slice_alloc 
((block_size)))
+#define panel_slice_alloc0(block_size)            (g_slice_alloc0 
((block_size)))
+#define panel_slice_free1(block_size, mem_block)  G_STMT_START{ g_slice_free1 
((block_size), (mem_block)); }G_STMT_END
+#define panel_slice_new(type)                     (g_slice_new (type))
+#define panel_slice_new0(type)                    (g_slice_new0 (type))
+#define panel_slice_free(type, ptr)               G_STMT_START{ g_slice_free 
(type, (ptr)); }G_STMT_END
+#else
+#define panel_slice_alloc(block_size)             (g_malloc ((block_size)))
+#define panel_slice_alloc0(block_size)            (g_malloc0 ((block_size)))
+#define panel_slice_free1(block_size, mem_block)  G_STMT_START{ g_free 
((mem_block)); }G_STMT_END
+#define panel_slice_new(type)                     (g_new (type, 1))
+#define panel_slice_new0(type)                    (g_new0 (type, 1))
+#define panel_slice_free(type, ptr)               G_STMT_START{ g_free 
((ptr)); }G_STMT_END
+#endif
+
+#endif /* _XFCE_PANEL_MACROS_H */
+

_______________________________________________
Xfce4-commits mailing list
[email protected]
http://foo-projects.org/mailman/listinfo/xfce4-commits

Reply via email to