[maemo-commits] [maemo-commits] r17382 - in projects/haf/trunk/libmatchbox2: . matchbox/core

From: subversion at stage.maemo.org subversion at stage.maemo.org
Date: Tue Feb 10 10:05:48 EET 2009
Author: aendrodi
Date: 2009-02-10 10:05:26 +0200 (Tue, 10 Feb 2009)
New Revision: 17382

Modified:
   projects/haf/trunk/libmatchbox2/ChangeLog
   projects/haf/trunk/libmatchbox2/matchbox/core/mb-wm-debug.h
Log:
	* matchbox/core/mb-wm-debug.h (MBWM_GEOMETRY()):
	  Debugging macro added to make it easier to display matchbox
	  and clutter geometries.


Modified: projects/haf/trunk/libmatchbox2/ChangeLog
===================================================================
--- projects/haf/trunk/libmatchbox2/ChangeLog	2009-02-09 14:48:57 UTC (rev 17381)
+++ projects/haf/trunk/libmatchbox2/ChangeLog	2009-02-10 08:05:26 UTC (rev 17382)
@@ -1,3 +1,9 @@
+2009-02-10  Adam Endrodi  <adam.endrodi at blumsoft.eu>
+
+	* matchbox/core/mb-wm-debug.h (MBWM_GEOMETRY()):
+	  Debugging macro added to make it easier to display matchbox
+	  and clutter geometries.
+
 2009-02-09  Kimmo Hämäläinen  <kimmo.hamalainen at nokia.com>
 
 	* matchbox/comp-mgr/mb-wm-comp-mgr-clutter.c

Modified: projects/haf/trunk/libmatchbox2/matchbox/core/mb-wm-debug.h
===================================================================
--- projects/haf/trunk/libmatchbox2/matchbox/core/mb-wm-debug.h	2009-02-09 14:48:57 UTC (rev 17381)
+++ projects/haf/trunk/libmatchbox2/matchbox/core/mb-wm-debug.h	2009-02-10 08:05:26 UTC (rev 17382)
@@ -21,6 +21,10 @@
 #ifndef _HAVE_MB_DEBUG_H
 #define _HAVE_MB_DEBUG_H
 
+/* Enumerate the fields of an MBGeometry * such that you can use it in
+ * printf("%dx%d%+d%+d"). */
+#define MBWM_GEOMETRY(geo) (geo)->width, (geo)->height, (geo)->x, (geo)->y
+
 #if MBWM_WANT_DEBUG
 
 typedef enum {


More information about the maemo-commits mailing list