Rev'ed package as a result.
+Sat Sep 29 19:45:00 2001 Bill Haneman <bill.haneman@sun.com>
+
+ * configure.in (ATK_MICRO_VERSION): Version 0.6
+ (because libglade will depend on a the small api addition below)
+
+ * atk/makefile.msc (PKG_VER): Version 0.6
+
+ * atk/atkrelation.h:
+ * atk/atkrelation.c: (AtkRelationType
+ atk_relation_type_from_string (const gchar *name)): Added method.
+
+
Tue Sep 25 12:08:52 2001 Owen Taylor <otaylor@redhat.com>
* configure.in (ATK_MICRO_VERSION): Version 0.5
return (++type);
}
+AtkRelationType
+atk_relation_type_from_string (const gchar *name)
+{
+ /*
+ * TODO: implement properly,
+ * checking type namelist in conjunction with above function.
+ */
+ if ( !strcmp (name, "controlled_by") ) return ATK_RELATION_CONTROLLED_BY;
+ else if (!strcmp (name, "controller_for")) return ATK_RELATION_CONTROLLER_FOR;
+ else if (!strcmp (name, "label_for")) return ATK_RELATION_LABEL_FOR;
+ else if (!strcmp (name, "labelled_by")) return ATK_RELATION_LABELLED_BY;
+ else if (!strcmp (name, "member_of")) return ATK_RELATION_MEMBER_OF;
+ else return ATK_RELATION_NULL;
+}
+
+
/**
* atk_relation_new:
* @targets: an array of pointers to #AtkObjects
AtkRelationType atk_relation_type_register (const gchar *name);
+AtkRelationType atk_relation_type_from_string (const gchar *name);
+
/*
* Create a new relation for the specified key and the specified list
* of targets.
#include "atkutil.h"
#include "atkmarshal.c"
+
static void atk_util_class_init (AtkUtilClass *klass);
GType
return NULL;
}
}
+
ATK_MAJOR_VERSION=0
ATK_MINOR_VERSION=0
-ATK_MICRO_VERSION=5
+ATK_MICRO_VERSION=6
ATK_INTERFACE_AGE=0
ATK_BINARY_AGE=0
## with 1.0 you'd insert MINOR_VERSION in here, i.e. 0.3->1.0.0->1.0.1->1.0.2