[glade3] * gladeui/glade-widget-adaptor.h, gladeui/glade-property-class.h: Removed some obsolete macros.



commit adf891b415d9bb3188490c381d7cdeefebea9f30
Author: Tristan Van Berkom <tristan van berkom gmail com>
Date:   Sun Jan 2 05:37:09 2011 +0900

    	* gladeui/glade-widget-adaptor.h, gladeui/glade-property-class.h: Removed some obsolete macros.

 ChangeLog                      |    2 +
 gladeui/glade-property-class.h |   16 ------------
 gladeui/glade-widget-adaptor.h |   54 ----------------------------------------
 3 files changed, 2 insertions(+), 70 deletions(-)
---
diff --git a/ChangeLog b/ChangeLog
index 0f07467..8b61160 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -30,6 +30,8 @@
 	* Made GladeProperty internalize *everything* into a private data structure,
 	17 files changed, 766 insertions(+), 592 deletions(-)
 
+	* gladeui/glade-widget-adaptor.h, gladeui/glade-property-class.h: Removed some obsolete macros.
+
 2010-12-31  Tristan Van Berkom <tristanvb openismus com>
 
 	* gladeui/glade-project.c: Further fixing project dispose cycle, still leaking a little
diff --git a/gladeui/glade-property-class.h b/gladeui/glade-property-class.h
index 4029cbb..e24f242 100644
--- a/gladeui/glade-property-class.h
+++ b/gladeui/glade-property-class.h
@@ -47,21 +47,6 @@ G_BEGIN_DECLS
 	 (GLADE_PROPERTY_CLASS (klass)->version_since_minor <= minor_version) : \
 	 (GLADE_PROPERTY_CLASS (klass)->version_since_major <= major_version))
 
-/**
- * GPC_BUILDER_VERSION_CHECK:
- * @klass: A #GladePropertyClass
- * @major_version: The major version to check
- * @minor_version: The minor version to check
- *
- * Evaluates to %TRUE if @klass is available for use with GtkBuilder in its 
- * owning library version- major_verion @minor_version.
- *
- */
-#define GPC_BUILDER_VERSION_CHECK(klass, major_version, minor_version)	\
-	((GLADE_PROPERTY_CLASS (klass)->builder_since_major == major_version) ? \
-	 (GLADE_PROPERTY_CLASS (klass)->builder_since_minor <= minor_version) : \
-	 (GLADE_PROPERTY_CLASS (klass)->builder_since_major <= major_version))
-
 
 #define GPC_OBJECT_DELIMITER ", "
 #define GPC_PROPERTY_NAMELEN 512  /* Enough space for a property name I think */
@@ -128,7 +113,6 @@ struct _GladePropertyClass
 			    * when instantiating a widget with this property (through a popup
 			    * dialog).
 			    */
-
 	
 	guint translatable : 1; /* The property should be translatable, which
 				 * means that it needs extra parameters in the
diff --git a/gladeui/glade-widget-adaptor.h b/gladeui/glade-widget-adaptor.h
index 46b4cbb..13a86ba 100644
--- a/gladeui/glade-widget-adaptor.h
+++ b/gladeui/glade-widget-adaptor.h
@@ -33,24 +33,6 @@ typedef struct _GladeWidgetAdaptorClass   GladeWidgetAdaptorClass;
         ((obj) ? GLADE_WIDGET_ADAPTOR_GET_CLASS(obj)->deprecated : FALSE)
 
 /**
- * GWA_LIBGLADE_UNSUPPORTED:
- * @obj: A #GladeWidgetAdaptor
- *
- * Checks whether this widget class is unsupported by Libglade
- */
-#define GWA_LIBGLADE_UNSUPPORTED(obj) \
-        ((obj) ? GLADE_WIDGET_ADAPTOR_GET_CLASS(obj)->libglade_unsupported : FALSE)
-
-/**
- * GWA_LIBGLADE_ONLY:
- * @obj: A #GladeWidgetAdaptor
- *
- * Checks whether this widget class is only supported by libglade
- */
-#define GWA_LIBGLADE_ONLY(obj) \
-        ((obj) ? GLADE_WIDGET_ADAPTOR_GET_CLASS(obj)->libglade_only : FALSE)
-
-/**
  * GWA_VERSION_SINCE_MAJOR:
  * @obj: A #GladeWidgetAdaptor
  *
@@ -69,25 +51,6 @@ typedef struct _GladeWidgetAdaptorClass   GladeWidgetAdaptorClass;
         ((obj) ? GLADE_WIDGET_ADAPTOR_GET_CLASS(obj)->version_since_minor : 0)
 
 /**
- * GWA_BUILDER_SINCE_MAJOR:
- * @obj: A #GladeWidgetAdaptor
- *
- * Checks major version in which this widget introduced gtkbuilder support
- */
-#define GWA_BUILDER_SINCE_MAJOR(obj) \
-        ((obj) ? GLADE_WIDGET_ADAPTOR_GET_CLASS(obj)->builder_since_major : 0)
-
-/**
- * GWA_BUILDER_SINCE_MINOR:
- * @obj: A #GladeWidgetAdaptor
- *
- * Checks minor version in which this widget introduced gtkbuilder support
- */
-#define GWA_BUILDER_SINCE_MINOR(obj) \
-        ((obj) ? GLADE_WIDGET_ADAPTOR_GET_CLASS(obj)->builder_since_minor : 0)
-
-
-/**
  * GWA_VERSION_CHECK:
  * @adaptor: A #GladeWidgetAdaptor
  * @major_version: The major version to check
@@ -101,23 +64,6 @@ typedef struct _GladeWidgetAdaptorClass   GladeWidgetAdaptorClass;
 	 (GWA_VERSION_SINCE_MINOR (adaptor) <= minor_version) : \
 	 (GWA_VERSION_SINCE_MAJOR (adaptor) <= major_version))
 
-
-
-/**
- * GWA_BUILDER_VERSION_CHECK:
- * @adaptor: A #GladeWidgetAdaptor
- * @major_version: The major version to check
- * @minor_version: The minor version to check
- *
- * Evaluates to %TRUE if @adaptor is available for use with GtkBuilder in its 
- * owning library version- major_verion @minor_version.
- *
- */
-#define GWA_BUILDER_VERSION_CHECK(adaptor, major_version, minor_version) \
-	((GWA_BUILDER_SINCE_MAJOR (adaptor) == major_version) ? \
-	 (GWA_BUILDER_SINCE_MINOR (adaptor) <= minor_version) : \
-	 (GWA_BUILDER_SINCE_MAJOR (adaptor) <= major_version))
-
 /**
  * GWA_IS_TOPLEVEL:
  * @obj: A #GladeWidgetAdaptor



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]