+2003-02-26 Padraig O'Briain <padraig.obriain@sun.com>
+
+ * atk/atkgobjectaccessible.c (atk_gobject_accessible_from_object):
+ Correct creation of non-AtkGObjectAccessible (bug #107124)
+
+ * atk/atkobject.c (atk_object_class_init): Set default initialize
+ function so that code which does not check for existence of parent
+ class's initialize function will work.
+
+ * atk/atkvalue.c: (atk_value_get_minimum_value,
+ atk_value_get_maximum_value, atk_value_get_current_value):
+ Reset Value argument if it is a valid GValue otherwise zeroise it.
+
+ docs/tmpl/atkhypertext.sgml: Add link-selected signal.
+
2003-02-25 Tor Lillqvist <tml@iki.fi>
* Makefile.am (EXTRA_DIST): Dist atk-zip.sh.in, not atk-zip.sh.
* docs/atk-sections.txt: Add new functions and data items.
- * docs/tmpl/atk-object.sgml: Remove some docuementation and put in
+ * docs/tmpl/atk-object.sgml: Remove some documentation and put in
atkobject.h. Add reference to accessible-table-caption-object.
* docs/tmpl/atk-relation.sgml: Add new properties
/* ATK - Accessibility Toolkit
- * Copyright 2001 Sun Microsystems Inc.
+ * Copyright 2001, 2002, 2003 Sun Microsystems Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
G_OBJECT_TYPE (obj));
accessible = atk_object_factory_create_accessible (factory,
obj);
- if (!quark_accessible_object)
+ if (!ATK_IS_GOBJECT_ACCESSIBLE (accessible))
{
/*
* The AtkObject which was created was not a AtkGObjectAccessible
*/
- quark_accessible_object = g_quark_from_static_string ("accessible-object");
g_object_weak_ref (obj,
(GWeakNotify) g_object_unref,
accessible);
+ if (!quark_accessible_object)
+ quark_accessible_object = g_quark_from_static_string ("accessible-object");
}
g_object_set_qdata (obj, quark_accessible_object, accessible);
}
AtkObjectClass *klass);
static AtkRelationSet* atk_object_real_ref_relation_set
(AtkObject *accessible);
-
+static void atk_object_real_initialize (AtkObject *accessible,
+ gpointer data);
static void atk_object_real_set_property (GObject *object,
guint prop_id,
const GValue *value,
klass->get_role = atk_object_real_get_role;
klass->get_layer = atk_object_real_get_layer;
klass->get_mdi_zorder = NULL;
+ klass->initialize = atk_object_real_initialize;
klass->ref_state_set = atk_object_real_ref_state_set;
klass->set_name = atk_object_real_set_name;
klass->set_description = atk_object_real_set_description;
return ret;
}
+
+static void
+atk_object_real_initialize (AtkObject *accessible,
+ gpointer data)
+{
+ return;
+}
/* ATK - Accessibility Toolkit
- * Copyright 2001 Sun Microsystems Inc.
+ * Copyright 2001, 2002, 2003 Sun Microsystems Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* Boston, MA 02111-1307, USA.
*/
+#include <string.h>
#include "atkvalue.h"
GType
iface = ATK_VALUE_GET_IFACE (obj);
if (iface->get_current_value)
- (iface->get_current_value) (obj, value);
+ {
+ if (G_IS_VALUE (value))
+ g_value_unset (value);
+ else
+ memset (value, 0, sizeof (*value));
+
+ (iface->get_current_value) (obj, value);
+ }
}
/**
iface = ATK_VALUE_GET_IFACE (obj);
if (iface->get_maximum_value)
- (iface->get_maximum_value) (obj, value);
+ {
+ if (G_IS_VALUE (value))
+ g_value_unset (value);
+ else
+ memset (value, 0, sizeof (*value));
+
+ (iface->get_maximum_value) (obj, value);
+ }
}
/**
iface = ATK_VALUE_GET_IFACE (obj);
if (iface->get_minimum_value)
- (iface->get_minimum_value) (obj, value);
+ {
+ if (G_IS_VALUE (value))
+ g_value_unset (value);
+ else
+ memset (value, 0, sizeof (*value));
+
+ (iface->get_minimum_value) (obj, value);
+ }
}
/**
@Returns:
+<!-- ##### SIGNAL AtkHypertext::link-selected ##### -->
+<para>
+
+</para>
+
+@atkhypertext: the object which received the signal.
+@arg1:
+