Commit adf891b4 authored by Tristan Van Berkom's avatar Tristan Van Berkom
Browse files

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

parent e4b45016
......@@ -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
......
......@@ -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
......
......@@ -32,24 +32,6 @@ typedef struct _GladeWidgetAdaptorClass GladeWidgetAdaptorClass;
#define GWA_DEPRECATED(obj) \
((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
......@@ -68,25 +50,6 @@ typedef struct _GladeWidgetAdaptorClass GladeWidgetAdaptorClass;
#define GWA_VERSION_SINCE_MINOR(obj) \
((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
......@@ -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
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment